No project description provided
Project description
CJKCMS-Wagtail-Color-Panel
Forked from https://github.com/marteinn/wagtail-color-panel for use in CJKCMS. Original package is still at Wagtail4.x and this fork is for Wagtail5.x.
Original application/package name wagtail_color_panel
is still used for drop-in replacement.
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
cjkcms-color-panel-1.4.2.tar.gz
(13.2 kB
view hashes)
Built Distribution
Close
Hashes for cjkcms_color_panel-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9271a43f44a6f3c90f7221b6dca4dda05d5dfd5369da15c1ede671f8b7cfcded |
|
MD5 | adb16f64350fcb57084eb376266c8ea4 |
|
BLAKE2b-256 | d36ed7e6939040ad5ac938476054c45f292b0864d7c36dd2605d34d30ddea53c |