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.
Release files for wagtail-color-panel 1.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wagtail_color_panel-1.8.1.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtail_color_panel-1.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.0 kB
Release files / wagtail_color_panel-1.8.1.tar.gz
| Download URL | wagtail_color_panel-1.8.1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aca26f8b7178ff596aa2eac8982167396bbbc222fadbae4b6b1f18291b33473a
|
|
BLAKE2b-256 checksum How to use checksums |
9e44bd3e5a9ee9bc9b72153e0a227aae5b7e181d2ce4e601ff9b01c1074fbbb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / wagtail_color_panel-1.8.1-py3-none-any.whl
| Download URL | wagtail_color_panel-1.8.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e8aaeceac3618a9b69370b5097fa4d3c2db19b31bff95b7726343660793e55e
|
|
BLAKE2b-256 checksum How to use checksums |
6dbb86ee676a4613c0dade91685fb3402766de4c20874ad6f18d91807d9813cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|