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.3.1.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for wagtail-color-panel-1.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 961e6e1f01ae9a134176520e690b065f6cb8585df81ca572d73c0acaf3747461 |
|
MD5 | 04f83f9bdd04d7e808115a3df6fe85f4 |
|
BLAKE2b-256 | 5a36ec799c02b59eef4ca515a2a5cfe82fb5c3eb18b4d0017ab3c1b6d3830177 |
Close
Hashes for wagtail_color_panel-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6701415f2d03a663cd50b277aa82bfcac80cc344317860ffdcd029c81b77dd5 |
|
MD5 | 4bc6ef9ad0a5919e878ef4afb3ff37c4 |
|
BLAKE2b-256 | d6612ef8914d6604d47d4bcc31e884f367b83343205ef5fd38cc554312bc8379 |