MenuItemDirective

12 Sep 20251 minute to read

Properties

htmlAttributes any

Specifies the htmlAttributes property to support adding custom attributes to the menu items in the menu component.

Defaults to null

iconCss any

Defines class/multiple classes separated by a space for the menu Item that is used to include an icon.
Menu Item can include font icon and sprite image.

Defaults to null

id any

Specifies the id for menu item.

Defaults to ’’

items any

Specifies the sub menu items that is the array of MenuItem model.

Defaults to []

separator any

Specifies separator between the menu items. Separator are either horizontal or vertical lines used to group menu items.

Defaults to false

text any

Specifies text for menu item.

Defaults to ’’

url any

Specifies url for menu item that creates the anchor link to navigate to the url provided.

Defaults to ’’