Side Nav Menu Item

Side Nav Menu Item's are used to render navigation menu options.

Procedures Findings

Use the disabled attribute to disable the menu item.

Procedures Findings

Use the selected attribute to show the menu item as selected.

Procedures Findings

Use the Side Nav Menu Group component inside a Side Nav Menu Item component to create a group of menu items.

Dashboard Procedures By Exam Type By Procedure Type BBPS Procedure Duration Total Endoscope Time Withdrawal Time Withdrawal Time Retroflexion Detection By Doctor Findings

Use the collapsable attribute to make the Side Nav Menu Group collapsable.

Dashboard Procedures By Exam Type By Procedure Type BBPS Procedure Duration Total Endoscope Time Withdrawal Time Withdrawal Time Retroflexion Detection By Doctor Findings
import '@ods/components/web.side-nav-menu-item';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)The menu item's label.
prefixUsed to prepend an icon or similar element to the menu item.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
value
string''
role
'menuitem' | 'group''menuitem'
disabled
booleanfalse
selected
booleanfalse
closed
booleanfalse
collapsible
booleanfalse

Methods

NameDescriptionArguments
getTextLabel()Returns a text label based on the contents of the menu item's default slot.--

Parts

NameDescription
baseThe component's base wrapper.
prefixThe prefix container.
labelThe menu item label.

Dependencies

This component automatically imports the following dependencies.

  • ods-icon

See Side Nav for more information.

See Side Nav for more information.

Search