shadow
MenuItem je podriadený elementu Menu. a predstavuje navigačnú položku v jeho vnútri. Môže zobrazovať podmenu s ďalšími navigačnými položkami a tiež umožňuje zobrazenie ikon.
Pre príklady použitia MenuItem prejdite na stránku dokumentácie elementu Menu..
Description | If true , a check icon appears in the MenuItem. |
Attribute | checked |
Type | boolean |
Default | false |
Description | If true , the submenu is in the collapsed state. |
Attribute | collapse |
Type | boolean |
Default | false |
Description | Specifies the location of the submenu on the screen. |
Attribute | placement |
Type | "bottom" | "bottom-end" | "bottom-start" | "left-bottom" | "left" | "left-top" | "right-bottom" | "right" | "right-top" | "top" | "top-end" | "top-start" | string & Record<never, never> | undefined |
Default | right-start |
Description | Specifies the submenu variant. Possible values include context , which displays the submenu in a context window, or nav , which displays the submenu as a drop-down menu. |
Attribute | Option |
Type | string |
Default | context |
No events available for this component.
No public methods available for this component.
Name | Description |
---|
native | Refers to a div element inside an element. |
submenu | refers to the slot element inside the element. |
Name | Description |
---|
--wj-menu-background | Background colour of the element |
--wj-menu-border-color | Colour of element edges |
--wj-menu-border-radius | Rounding of the edges of the element |
--wj-menu-border-style | Rounding style of the element |
--wj-menu-border-width | Width of the edges of the element |
--wj-menu-padding-bottom | Lower internal offset of the element |
--wj-menu-padding-inline | Internal offset of the element left and right |
--wj-menu-padding-top | Upper internal offset of the element |
--wj-menu-from-index | Z-index of the element |
No slots available for this component.