No project description provided
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.core.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.4.0.tar.gz
(13.1 kB
view hashes)
Built Distribution
Close
Hashes for wagtail-color-panel-1.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826eec57d35d595823fe78472cbf6d2650a2a8ed509d3d5205c924283f33cd9c |
|
MD5 | f40c9542140d8e39c5ad013204b0643b |
|
BLAKE2b-256 | ccd767a4d2b236c3fdac388b8bc33d3f2ea3307c2e705a1905dc51ddac891c9f |
Close
Hashes for wagtail_color_panel-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1055429a3f31fc4c7286eb9ecb7fd8ba383fbaa97f4f0742ab686be224a794c5 |
|
MD5 | 173d10456babd35eb335d279219d7bdf |
|
BLAKE2b-256 | 6ed181d20ba5441c14aa3be3949532314ef38ee7385ac0d8627ff7e1878eaf0a |