jinjie / silverstripe-admin-material-icons
Material Design Icons on Silverstripe 4 admin
Installs: 395
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
This package is auto-updated.
Last update: 2024-11-05 13:09:41 UTC
README
Provide Material Design Icons for Silverstripe admin menu items.
Finally more icons!
Only uses simple css and javascript to replace class names that startswith with mdi:
Installation
composer require jinjie/silverstripe-admin-material-icons
How to use
No configuration is required. Make use of the current $menu_icon_class.
Instead of using the built in font, use something like mdi:face
.
Examples
// In ModelAdmin class MyModelAdmin extends ModelAdmin { private static $menu_icon_class = 'mdi:face'; }
# Or in yaml SilverStripe\SiteConfig\SiteConfigLeftAndMain: menu_icon_class: 'mdi:settings'
How it works
A script will find classes in that starts with mdi:
, adds material-icons
to it and text in the in the element.
License
See License
Maintainers
- Kong Jin Jie jinjie@swiftdev.sg
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.