Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.27 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.27 KB

Wagtail-Icon-Picker

Introducing panels for selecting icons in Wagtail.

Screen1

Features

  • BootstrapIconPickerPanel, BoxiconsPickerPanel, FontAwesomeIconPickerPanel, IcofontIconPickerPanel can be used in your edit handler
  • BootstrapIconPickerBlock, FontAwesomeIconPickerBlock, BoxIconPickerBlock, IcofontPickerBlock for usage in a StreamField
  • Includes Bootstrap Icons, FontAwesome, Boxicons & Icofont icons libraries
  • A custom db field for improved validation

Example

from wagtail.core.models import Page

from wagtail_icon_picker.fields import IconField
from wagtail_icon_picker.edit_handlers import IcofontIconPickerPanel


class MyPage(Page):
    icon = IconField()

    content_panels = Page.content_panels + [
        IcofontIconPickerPanel('icon'),
    ]

Documentation

Contributing

Want to contribute? Awesome. Just send a pull request.

License

Wagtail-Icon-Picker is released under the MIT License.