Menu v2.0.0 Release Notes
-
- ➕ Added added the static
Menu::build
and non-staticMenu::fill
methods to create menu's from arrays. - ➕ Added the
setActive
method onActivatable
now also accepts a non-strict boolean or callable parameter to set$active
to true or false. - ➕ Added
Menu::html
andMenu::htmlIf
now accept a$parentAttributes
array as their second arguments. - 🔄 Changed the
HtmlAttributes
andParentAttributes
traits have been renamed toHasHtmlAttributes
andHasParentAttributes
. - 🔄 Changed the
HasUrl
interface and trait has been removed. Url-related methods now also are part of theActivatable
interface and trait. - ✂ Removed the
void
andvoidIf
have been removed. These can be replaced byhtml
andhtmlIf
, with empty strings as their first arguments - ✂ Removed the
prefixLinks
andprefixUrls
methods have been removed because they were too unpredictable in some case. There currently isn't an alternative for these, besides writing your own logic and applying it withapplyToAll
.
- ➕ Added added the static