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
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
Close
Hashes for wagtail-color-panel-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d42a1d7119a57f292aefd8164e7f1385036ea9efa7da4d6ada248c81e15a5447 |
|
MD5 | d2edb3d9edbf5f1796edb674fd7dbdac |
|
BLAKE2b-256 | 96efc172afb3ed864f946787530a5a8ae7e5a8c790764e6fd53b4e7f7bfb38c9 |