Skip to main content

Menu

shadow

Menu element slúži na zobrazenie navigácie. V predvolenom stave je schovaný a zobrazí sa pridaním atribútu active napríklad po kliknutí na tlačidlo. Skladá sa z elementov MenuItem..

Základné použitie

Inset

Atribúty a Vlastnosti

active

DescriptionIf true, activates the menu and makes it visible by adding display: "flex".
Attributeactive
Typeboolean
Defaultfalse

collapse

DescriptionIf true, the menu is in the collapsed state.
Attributecollapse
Typeboolean
Defaultfalse

offset

DescriptionSpecifies the size of the submenu indentation.
Attributeoffset
Typestring | undefined
Default0

Eventy

No events available for this component.

Metódy

No public methods available for this component.

CSS Shadow Parts

NameDescription
nativeRefers to a div element inside an element.

CSS Custom Vlastnosti

NameDescription
--wj-menu-backgroundBackground colour of the element
--wj-menu-border-colorColour of element edges
--wj-menu-border-radiusRounding of the edges of the element
--wj-menu-border-styleRounding style of the element
--wj-menu-border-widthWidth of the edges of the element
--wj-menu-padding-bottomLower internal offset of the element
--wj-menu-padding-inlineInternal offset of the element left and right
--wj-menu-padding-topUpper internal offset of the element
--wj-menu-from-indexZ-index of the element

Sloty

No slots available for this component.