Introduces panels for selecting colors in Wagtail.
Project description
Wagtail-Color-Panel
Introduces panels for selecting colors in Wagtail.
Features
- NativeColorPanel that can be used in your edit handler
- NativeColorBlock for usage in a StreamField
- Based on the native HTML5 color picker
- A custom db field for improved validation
- PolyfillColorPanel for cases that require IE11 support (built on Spectrum)
Example
from wagtail.models import Page
from wagtail_color_panel.fields import ColorField
from wagtail_color_panel.edit_handlers import NativeColorPanel
class MyPage(Page):
color = ColorField()
content_panels = Page.content_panels + [
NativeColorPanel('color'),
]
Documentation
Contributing
Want to contribute? Awesome. Just send a pull request.
License
Wagtail-Color-Panel is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wagtail_color_panel-1.8.1.tar.gz
(10.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtail_color_panel-1.8.1.tar.gz.
File metadata
- Download URL: wagtail_color_panel-1.8.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca26f8b7178ff596aa2eac8982167396bbbc222fadbae4b6b1f18291b33473a
|
|
| MD5 |
e9573c8f84afae6eb0e6a8ca73bc7741
|
|
| BLAKE2b-256 |
9e44bd3e5a9ee9bc9b72153e0a227aae5b7e181d2ce4e601ff9b01c1074fbbb5
|
File details
Details for the file wagtail_color_panel-1.8.1-py3-none-any.whl.
File metadata
- Download URL: wagtail_color_panel-1.8.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e8aaeceac3618a9b69370b5097fa4d3c2db19b31bff95b7726343660793e55e
|
|
| MD5 |
5aaa8c29d2110ad9f2acf74c1a5cc14d
|
|
| BLAKE2b-256 |
6dbb86ee676a4613c0dade91685fb3402766de4c20874ad6f18d91807d9813cc
|