-
Notifications
You must be signed in to change notification settings - Fork 234
Append and Prepend
Shea Lewis edited this page Nov 16, 2015
·
1 revision
You can append or prepend HTML or plain-text to each item's title after it is defined:
...
$menu->add('Users', 'admin/users')
->prepend('<span class="glyphicon glyphicon-user"></span>')
->append('<b class="caret"></b>');
...
The package will automatically add a space where needed between the prepended/appended values and the item's title.
Remember to use the {!! !!}
Blade syntax in order to properly render any HTML you may pass through here within your view files.
- Active Link Detection
- Append and Prepend
- Attributes
- Dividers
- [Meta Data](Meta Data)
- [Sort By](Sort By)