A wagtail package to add Twitter s Bootstrap Icons to administration
Project description
wagtailtwbsicons
A wagtail package to add Twitter's Bootstrap Icons to administration icons list.
Currently using Bootstrap Icons v1.9.1
Install
TODO : add to pip
Usage
- Add wagtailtwbsicons to INSTALLED_APPS in your project settings
INSTALLED_APPS = [
...
'wagtailtwbsicons',
...
]
- Have a look to the available list of icons and use the last class provided for web font in the regular Wagtail way (ex: for person-square icon, the website provide to use "bi bi-person-square" class, so we need to use "bi-person-square")
class PersonBlock(blocks.StructBlock):
first_name = blocks.CharBlock()
...
class Meta:
icon = 'bi-person-square'
Using wagtailtwbsicons as an optionnal dependency
from django.apps import apps
class PersonBlock(blocks.StructBlock):
first_name = blocks.CharBlock()
...
class Meta:
if apps.is_installed('wagtailtwbsicons'):
icon = 'bi-person-square'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wagtailtwbsicons-1.0.0.tar.gz
(501.2 kB
view hashes)
Built Distribution
Close
Hashes for wagtailtwbsicons-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87133a597efa03e99edcacc804312ef2663f93be32210dc93cd80548ad487654 |
|
MD5 | 2daed2f6aac6c80954a6618c56fe44a8 |
|
BLAKE2b-256 | 1c6f25b706a972277724acb80880e471a6d581c0272306e6ad0df06056ea609b |