Skip to main content

Introduces panels for selecting colors in Wagtail.

Project description

Test and publish PyPI version

Wagtail-Color-Panel

Introduces panels for selecting colors in Wagtail.

Screen1

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


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.8.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_color_panel-1.8.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_color_panel-1.8.1.tar.gz.

File metadata

  • Download URL: wagtail_color_panel-1.8.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for wagtail_color_panel-1.8.1.tar.gz
Algorithm Hash digest
SHA256 aca26f8b7178ff596aa2eac8982167396bbbc222fadbae4b6b1f18291b33473a
MD5 e9573c8f84afae6eb0e6a8ca73bc7741
BLAKE2b-256 9e44bd3e5a9ee9bc9b72153e0a227aae5b7e181d2ce4e601ff9b01c1074fbbb5

See more details on using hashes here.

File details

Details for the file wagtail_color_panel-1.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_color_panel-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e8aaeceac3618a9b69370b5097fa4d3c2db19b31bff95b7726343660793e55e
MD5 5aaa8c29d2110ad9f2acf74c1a5cc14d
BLAKE2b-256 6dbb86ee676a4613c0dade91685fb3402766de4c20874ad6f18d91807d9813cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page