Skip to main content

No project description provided

Project description

Wagtail-Color-Panel

Wagtail-Color-Panel

Wagtail-Color-Panel

Introduces panels for selecting colors in Wagtail.

Screen1

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

Example

from wagtail.core.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.0.0.tar.gz (249.2 kB view hashes)

Uploaded Source

Supported by

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