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. Listy vo všeobecnosti obsahujú položky s rovnakým obsahom a zoskupujú ich do väčšieho celku.

Základné použitie

Vnorený list

Nastavením hodnoty vlastnosti inset na true sa do okolia elementu pridá margin a vznikne tak vnorený zoznam.

Oddeľovanie čiary

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.