Releases: spatie/menu
Releases · spatie/menu
2.8.0
- Add
exact-active
class to links that exactly match the current URL. This is accompanied by asetExactActiveClass(string $class)
method to set the class name
2.7.0
- Add
IteratorAggregate
interface toMenu
class
2.6.0
- Add
beforeRender
andwillRender
hooks that are called when an item is rendered
2.5.0
- This release adds a few methods to create non-
ul
menus, which allows for Bootstrap 4 compatibility - Added
Menu::setWrapperTag
andMenu::withoutWrapperTag
to set a custom wrapper tag name for the menu list. Default:ul
- Added
Menu::setParentTag
&Menu::withoutParentTag
to determine which tag should be used for the item's parent element. Default:li
- Added
Menu::setActiveClassOnLink
andMenu::setActiveClassOnParent
to determine where the active class should be applied
2.4.1
- Allow invokable classes as callbacks
2.4.0
- Added
Menu::empty
andHtml::empty
method for adding empty list items
2.3.1
- Extracted a
ActiveUrlChecker
class for public use
2.3.0
- Added
append
andprepend
methods toLink
2.2.2
- Fixed: Returning a menu instance is now optional with
fill
andbuild
2.2.1
- Fixed: Setting items active with urls that start with the same string