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.5.0.tar.gz
(13.5 kB
view details)
Built Distribution
File details
Details for the file wagtail-color-panel-1.5.0.tar.gz
.
File metadata
- Download URL: wagtail-color-panel-1.5.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93823850e6afbcd364d9e02e2feb952fcebaeda03fa45053a47546a067eb852d |
|
MD5 | ba44a927870fb3d78062598e86207208 |
|
BLAKE2b-256 | 29af46213946306450de10fd617c9f149006e689595e96647103cf8beeeeb1ce |
File details
Details for the file wagtail_color_panel-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: wagtail_color_panel-1.5.0-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.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb737756a97fd3dbfa364fea27c4392ce84e91bc65681e593a41844811cce158 |
|
MD5 | beff6f80a8fe818d30b7327a430b9217 |
|
BLAKE2b-256 | 1761709301070cb8d9b8966777168ab5e427eeefbdb0ce75fd5317f299608339 |