View source: R/components-generated.R
calcite_menu_item | R Documentation |
Create a MenuItem component
calcite_menu_item(...)
... |
named attributes passed to |
The following properties are provided by this component:
Name | Attribute | Description | Values | Reflects to Attribute |
active | active | When true , the component is highlighted. | boolean | TRUE |
breadcrumb | breadcrumb | When true , the component displays a breadcrumb trail for use as a navigational aid. | boolean | TRUE |
href | href | Specifies the URL destination of the component, which can be set as an absolute or relative path. | string | FALSE |
iconEnd | icon-end | Specifies an icon to display at the end of the component. | string | TRUE |
iconFlipRtl | icon-flip-rtl | Displays the iconStart and/or iconEnd as flipped when the element direction is right-to-left ("rtl" ). | "both" | "end" | "start" | TRUE |
iconStart | icon-start | Specifies an icon to display at the start of the component. | string | TRUE |
label | label | Accessible name for the component. | string | FALSE |
messageOverrides | NA | Use this property to override individual strings used by the component. | Check API reference | FALSE |
open | open | When true , the component will display any slotted calcite-menu-item in an open overflow menu. | boolean | TRUE |
rel | rel | Defines the relationship between the href value and the current document. | string | TRUE |
target | target | Specifies where to open the linked document defined in the href property. | string | TRUE |
text | text | Specifies the text to display. | string | FALSE |
The following events are observed by shiny:
Event | Description |
calciteMenuItemSelect | Emits when the component is selected. |
The following slots are provided by this component:
Slot | Description |
submenu-item | A slot for adding calcite-menu-item s in a submenu. |
an object of class calcite_component
which is a subclass of shiny.tag
calcite_menu_item()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.