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
Close
Hashes for wagtail-color-panel-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c192a3fcca43806db0a47bae99d447c6c20ff89a6128709cd2d986435c99b8 |
|
MD5 | f43bed61689588c6a1978c5a43295a60 |
|
BLAKE2b-256 | 15a69c4dc7c1d1e77b6550b732f3b8b6c37d8743a27db3b3fc483ebb9f1877ca |