Skip to main content

Menu

Development

Examples

Basic

PreviewAngularReactVueJavaScript

2nd navigation level

Since 2.0.0
PreviewAngularReactVueJavaScript

Avatar

PreviewAngularReactVueJavaScript

Bottom tabs

Caution: Since the old implementation using the bottom property on menu items had some problems and will not work anymore, please use slot="bottom" instead.

PreviewAngularReactVueJavaScript

API (ix-menu)

Properties

Name
Description and specifications
applicationDescription
Should only be set if you use ix-menu standalone
Attribute:
application-description
Type:
string
Default:
''
applicationName
Should only be set if you use ix-menu standalone
Attribute:
application-name
Type:
string | undefined
enableMapExpand
Internal
Attribute:
enable-map-expand
Type:
boolean
Default:
false
enableSettings
Is settings tab is visible
Attribute:
enable-settings
Type:
boolean
Default:
true
enableToggleTheme
Show toggle between light and dark variant. Only if the provided theme have implemented both!
Attribute:
enable-toggle-theme
Type:
boolean
Default:
false
expand
Toggle the expand state of the menu
Attribute:
expand
Type:
boolean
Default:
false
i18nCollapse
Attribute:
i-1-8n-collapse
Type:
string
Default:
'Collapse'
i18nExpand
Attribute:
i-1-8n-expand
Type:
string
Default:
' Expand'
i18nExpandSidebar
Accessibility i18n label for the burger menu of the sidebar
Attribute:
i-1-8n-expand-sidebar
Type:
string
Default:
'Expand sidebar'
i18nLegal
Attribute:
i-1-8n-legal
Type:
string
Default:
'About & legal information'
i18nSettings
Attribute:
i-1-8n-settings
Type:
string
Default:
'Settings'
i18nToggleTheme
Attribute:
i-1-8n-toggle-theme
Type:
string
Default:
'Toggle theme'
maxVisibleMenuItems
Deprecated
- Has no effect on component. Will get removed with next major release (v3)
Maximum number of menu items to show in case enough vertical space is available. Extra menu items will be collapsed to 'show more' menu item.
Attribute:
max-visible-menu-items
Type:
number
Default:
9
pinned
Menu stays pinned to the left
Attribute:
pinned
Type:
boolean
Default:
false
showAbout
Is about tab visible
Attribute:
show-about
Type:
boolean
Default:
false
showSettings
Is settings tab visible
Attribute:
show-settings
Type:
boolean
Default:
false
startExpanded
Since 2.2.0
If set the menu will be expanded initially. This will only take effect at the breakpoint 'lg'.
Attribute:
start-expanded
Type:
boolean
Default:
false

Events

Name
Description and specifications
expandChange
Menu expanded
Detail:
boolean
mapExpandChange
Map Sidebar expanded
Detail:
boolean
openAppSwitch
Since 3.0.0
Event emitted when the app switch button is clicked
Detail:
void

API (ix-menu-item)

Props

Name
Description and specifications
active
State to display active
Attribute:
active
Type:
boolean
Default:
false
bottom
Caution: this is no longer working. Please use slot="bottom" instead. Place tab on bottom
Attribute:
bottom
Type:
boolean
Default:
false
disabled
Disable tab and remove event handlers
Attribute:
disabled
Type:
boolean
Default:
false
home
Move the Tab to a top position.
Attribute:
home
Type:
boolean
Default:
false
icon
Name of the icon you want to display. Icon names can be resolved from the documentation
Attribute:
icon
Type:
string | undefined
label
Since 2.2.0
Label of the menu item. Will also be used as tooltip text
Attribute:
label
Type:
string | undefined
notifications
Show notification count on tab
Attribute:
notifications
Type:
number | undefined
tabIcon
Deprecated
since 2.0.0 use `icon` property. Will be removed in 3.0.0
Name of the icon you want to display. Icon names can be resolved from the documentation
Attribute:
tab-icon
Type:
string | undefined

Events

No events available for this component.

API (ix-menu-category)

Properties

Name
Description and specifications
icon
Icon of the category
Attribute:
icon
Type:
string | undefined
label
Display name of the category
Attribute:
label
Type:
string | undefined
notifications
Show notification count on the category
Attribute:
notifications
Type:
number | undefined

Events

No events available for this component.

API (ix-menu-avatar)

Properties

Name
Description and specifications
bottom
Second line of text
Attribute:
bottom
Type:
string | undefined
i18nLogout
Use for translation
Attribute:
i-1-8n-logout
Type:
string
Default:
'Logout'
image
Since 1.4.0
Display a avatar image
Attribute:
image
Type:
string | undefined
initials
Since 1.4.0
Display the initials of the user. Will be overwritten by image
Attribute:
initials
Type:
string | undefined
showLogoutButton
Since 2.1.0
Control the visibility of the logout button
Attribute:
show-logout-button
Type:
boolean
Default:
true
top
First line of text
Attribute:
top
Type:
string | undefined

Events

Name
Description and specifications
logoutClick
Logout click
Detail:
any

API (ix-menu-avatar-item)

Properties

Name
Description and specifications
icon
Avatar dropdown icon
Attribute:
icon
Type:
string | undefined
label
Avatar dropdown label
Attribute:
label
Type:
string | undefined

Events

Name
Description and specifications
itemClick
Avatar dropdown item clicked
Detail:
MouseEvent