Skip to main content

List

shadow

Komponent List (Zoznam) sa skladá z viacerých elementov Item (položiek) a môže obsahovať text, tlačidlá, prepínače, ikony, náhľady obrázkov, a mnoho iného. Sheets generally contain items with the same content and group them into a larger whole.

Basic usage

Nested leaf

Setting the value of the inset property to true adds a margin to the element's surroundings to create a nested list.

Line separation

Vlastnosť lines upravuje spodný okraj itemov. Nastavením tejto vlastnosti na hodnotu "none" sa nezobrazia žiadne okraje medzi položkami zoznamu.

Atribúty a Vlastnosti

inset

DescriptionIf true, the element gets an outer offset and rounding.
Attributeinset
Typeboolean
Defaultfalse

lines

DescriptionIf true, the element displays horizontal lines between the sheet element items.
Attributelines
Typeboolean
Defaultfalse

lines

DescriptionBy setting to "none", hides the separator lines between elements inside the List element
Attributelines
Type"none" | undefined
Defaultundefined

Eventy

No events available for this component.

Metódy

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Vlastnosti

NameDescription
--wje-list-backgroundBackground colour of the element
--wje-list-border-radiusSize of the element roundness
--wje-list-inset-paddingInternal indentation of the list when in nested mode (with the inset attribute). The default value is 1rem.

Sloty

NameDescription
``The default slot for the contents of the list.