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.7.0.tar.gz
(16.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtail_color_panel-1.7.0.tar.gz.
File metadata
- Download URL: wagtail_color_panel-1.7.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ca057e24b755175a52197d756b4a6dd0be19a0dd3d2779707235c54c669b78
|
|
| MD5 |
3c8cfd50ee2b2efa96799c2946911766
|
|
| BLAKE2b-256 |
462cd29dd16814881c0577e68ec0eae1470f07dc819620e62763db6785ab395d
|
File details
Details for the file wagtail_color_panel-1.7.0-py3-none-any.whl.
File metadata
- Download URL: wagtail_color_panel-1.7.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f50c49a8b3382bf31c4460375149a59e4e0c96215b3d9593054031c518cade
|
|
| MD5 |
68b3e25fccc600b4995b3779622f1389
|
|
| BLAKE2b-256 |
f43f6f0ce46860f0424290fb00f28a401e77a59e8ddc34297cb6dd989dc026ed
|