Introduces panels for selecting colors in Wagtail.
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.1.tar.gz
(10.3 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.1.tar.gz.
File metadata
- Download URL: wagtail_color_panel-1.7.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efc42058a49c39bea6a61523b230c71cf31e5aeaa269281c53146eeec02fc509
|
|
| MD5 |
f303a39dab04e5f18097fb6d22db51ce
|
|
| BLAKE2b-256 |
58bd043c8cfc6eae14303b555782add80148db0596441e8770723cf17e664d4d
|
File details
Details for the file wagtail_color_panel-1.7.1-py3-none-any.whl.
File metadata
- Download URL: wagtail_color_panel-1.7.1-py3-none-any.whl
- Upload date:
- Size: 9.4 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 |
77ee02a6dd08b21e8806bb3e8c7dc01ad679dbeef864ad915fec32f5e8bcd574
|
|
| MD5 |
68446ead56003c997a9ea7b65fd034b7
|
|
| BLAKE2b-256 |
db1dd004a5b57c8b1db6edee953e3222436c050dff2667320ca345964551640a
|