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.2.0.tar.gz
(12.1 kB
view hashes)
Close
Hashes for wagtail-color-panel-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e039a8765ca41b036c16bd3c29f0f78a814e59bec7365b7fd290a49b7e67968 |
|
MD5 | df9652095d73c04b7544a8b0400a792c |
|
BLAKE2b-256 | 580658851d33586aec30ffee3870f96f203ecd3c4c5daf6d8b1f9c575def7cbd |