PortalNavigationStateModel
{'This model supplements the main model for the navigation states to access style-mapping [configuration': "style-mapping/context[@key='navigation']]."}
implements: hash
bundle: standard portal bundle
since 2.0.0
This model supplements the main model for the navigation states to access style-mapping [configuration: style-mapping/context[@key='navigation']].
Extends NavigationStateModel for navigation items. Property keys: "activeClass": if navigation item is active, returns style mapping from configuration (or default "active") from: style-mapping/context[@key='navigation']/mapping[@css-class='active'] "hasChildrenClass": if item has children, returns style mapping from configuration: style-mapping/context[@key='navigation']/mapping[@css-class='has-children']. Otherwise from style-mapping/context[@key='navigation']/mapping[@css-class='no-children']
Defined hash keys
activeClass ↦ string
since 2.0.0
Returns if state is 'active' get the style mapping for 'active' - empty otherwise
hasChildrenClass ↦ string
since 2.0.0
Returns the style mapping for 'has-children' or 'no-children' or empty