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.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.5.1.tar.gz
(12.8 kB
view details)
Built Distribution
File details
Details for the file cjkcms-color-panel-1.5.1.tar.gz
.
File metadata
- Download URL: cjkcms-color-panel-1.5.1.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80477bf5e4caa43d482fc068f58e39e6ce3ad2dd600c59a8420afc9641d65de5 |
|
MD5 | 1fc336b128c8dd51c07967e2e66ccd8a |
|
BLAKE2b-256 | 55f96d6510d4def632dad24a6147252fda41351f9f159c5a7a792457f1ad6f26 |
Provenance
File details
Details for the file cjkcms_color_panel-1.5.1-py3-none-any.whl
.
File metadata
- Download URL: cjkcms_color_panel-1.5.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9637fe7e4f6e017c34afe6be699b95569b631729a1c534adb0ecd39a2e8ea77e |
|
MD5 | a6829d42c9b62c6f4d04738206715212 |
|
BLAKE2b-256 | 1630e8e9fa6f20ada61c58777fad9c396d747e233204d25199ff9ac8c5845a95 |