Skip to main content

No project description provided

Project description

Test and publish PyPI version

Wagtail-Color-Panel

Forked to Cjkcms-Color-Panel

by (cjkpl)[https://github.com/cjkpl/cjkcms-color-panel]

Wagtail-Color-Panel does not yet support Wagtail 7.x. This fork does.


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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cjkcms_color_panel-1.6.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file cjkcms_color_panel-1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cjkcms_color_panel-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2231f905ec3b49e01f21aff9f72be99e7dcad2232d141bbfbb8bce75d0448113
MD5 345e0cae3d646d23561e0193e1b2a3fe
BLAKE2b-256 51120054951a9bd7b5a2592c7ae485e9d31b1339294041980c4cb6bce2830715

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