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
wagtail_color_panel-1.6.0.tar.gz
(14.3 kB
view details)
Built Distribution
File details
Details for the file wagtail_color_panel-1.6.0.tar.gz
.
File metadata
- Download URL: wagtail_color_panel-1.6.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2349daa24ad9ef78685be493bc4f30a325383a1fcea01506232ba35048849f6d |
|
MD5 | c21be05af1445709183e64426bc7e664 |
|
BLAKE2b-256 | 0dca0418421131170e6f6ee1f5736a8c519681b9f8ddbdf6d9484bb191ce9a04 |
File details
Details for the file wagtail_color_panel-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: wagtail_color_panel-1.6.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e10c177d825346035aa0dedae82079cb751ad21a61a1cf3e690e3de73199fe8a |
|
MD5 | 24f1d3f94e322105823b8712e0b68de6 |
|
BLAKE2b-256 | 5fadf67707403944471bcc248f6b55278effbccdef5a3609dd4a1034bc628a79 |