Navbar
The navbar component is a traditional navbar with link items. In smaller screen sizes it becomes an expandable menu. You can load all the nav items with an array directly on the creation of the component. To load items dynamically as the user traverses down the tree of sub menu items is also an option. This is done with javascript and a request to a JSON file.
Parameters (Blade)
| Key | Default value | Type | Available values | Description |
|---|---|---|---|---|
|
logo
|
string | - | A link to a logo | |
|
items
|
[] | array | - | An array of links |
|
sidebar
|
false | boolean | - | If set to true the toggle will toggle sidebar |
|
expanded_menu
|
false | boolean | - | Data for expanded menu |
|
isDynamic
|
false | boolean | - | - |
|
id
|
string | - | The DOM id of the component. | |
|
classList
|
[] | array | - | Array containing wrapping classes array |
|
attributeList
|
[] | array | - | Array containing keys and values rendered as attributes |