Skip to main content

No project description provided

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.0.tar.gz (16.6 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.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wagtail_color_panel-1.7.0.tar.gz
  • Upload date:
  • Size: 16.6 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.0.tar.gz
Algorithm Hash digest
SHA256 73ca057e24b755175a52197d756b4a6dd0be19a0dd3d2779707235c54c669b78
MD5 3c8cfd50ee2b2efa96799c2946911766
BLAKE2b-256 462cd29dd16814881c0577e68ec0eae1470f07dc819620e62763db6785ab395d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wagtail_color_panel-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9f50c49a8b3382bf31c4460375149a59e4e0c96215b3d9593054031c518cade
MD5 68b3e25fccc600b4995b3779622f1389
BLAKE2b-256 f43f6f0ce46860f0424290fb00f28a401e77a59e8ddc34297cb6dd989dc026ed

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