-
Notifications
You must be signed in to change notification settings - Fork 59
Append and Prepend
Михаил [Myrrec] Лаврик edited this page May 23, 2015
·
2 revisions
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>');
...
Caffeinated Menus will automatically add a space where needed between the prepended/appended values and the item's title.
Remember to use the {!! !!}
Blade syntax or utilize Twig's raw
filter in order to properly render any HTML you may pass through here within your view files.
🔴 Best Temporary Email - https://1secmail.ru 🔴