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.7.1.tar.gz (10.3 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.7.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

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

Hashes for wagtail_color_panel-1.7.1.tar.gz
Algorithm Hash digest
SHA256 efc42058a49c39bea6a61523b230c71cf31e5aeaa269281c53146eeec02fc509
MD5 f303a39dab04e5f18097fb6d22db51ce
BLAKE2b-256 58bd043c8cfc6eae14303b555782add80148db0596441e8770723cf17e664d4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wagtail_color_panel-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77ee02a6dd08b21e8806bb3e8c7dc01ad679dbeef864ad915fec32f5e8bcd574
MD5 68446ead56003c997a9ea7b65fd034b7
BLAKE2b-256 db1dd004a5b57c8b1db6edee953e3222436c050dff2667320ca345964551640a

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