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.1.tar.gz
(13.7 kB
view hashes)
Built Distribution
Close
Hashes for wagtail-color-panel-1.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bea342ed76fd4f507d9a3825ceedef1f67c422d7661358bbb4956a374174dbf |
|
MD5 | ed5c78218cd6cdab820886d58b8de8c3 |
|
BLAKE2b-256 | da5075ad70fadc3589dfe97d4d1e94a5119550d497285291ed4c21cf7d81cc89 |
Close
Hashes for wagtail_color_panel-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33b922910ccb48f311f27cb638a5b2b462990d7b877b1adb6d219522c3c2c210 |
|
MD5 | 9ef843ab8a3dead2613a51d38214cb51 |
|
BLAKE2b-256 | 7dc18d089eb7bf4f0960aa771bbb341881cfe55a3b3c4f0db29bb570b9be6895 |