Introducing panels for selecting icons in Wagtail.
- 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
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'),
]
Want to contribute? Awesome. Just send a pull request.
Wagtail-Icon-Picker is released under the MIT License.