Skip to main content

Checkbox

shadow

Checkbox, alebo tiež začiarkavacie políčko, je element, ktorý umožňuje používateľom vybrať jednu alebo viac možností z množiny. Kliknutím na checkbox zmeníte jeho stav na true alebo false.

Základné použitie

Indeterminate checkbox

Po pridaní atribútu indeterminate sa zobrazí checkbox, ktorého predvolený stav je neutrálny, tzn. ani true ani false.

Variant

Pridaní atribútu variant s hodnotou circle zobrazíte checkbox v okrúhlom tvare.

Atribúty a Vlastnosti

checked

DescriptionIf true, the default state of the checkbox is changed to true
Attributechecked
Typeboolean
Defaultfalse

color

DescriptionSpecifies the background color of the checkbox. The default options are "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". For more information, go to: theming.
Attributecolor
Type"danger." | "primary" | "success" | "neutral" | "complete" | "warning" | string | undefined
Defaultundefined

disabled

DescriptionIf true, the checkbox cannot be interacted with
Attributedisabled
Typeboolean
Defaultfalse

indeterminate

DescriptionIf true, displays a checkbox whose default state is neutral.
Attributeindeterminate
Typeboolean
Defaultfalse

Option

DescriptionIf true, the appearance of the checkbox is changed to round.
AttributeOption
Type"circle"
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
--wj-checkbox-heightSpecifies the minimum height of the checkbox
--wj-checkbox-margin-bottomSize of the outer bottom edge
--wj-checkbox-margin-inlineSize of outer edges left and right
--wj-checkbox-margin-topSize of the outer upper edge
--wj-checkbox-widthSpecifies the minimum width of the checkbox

Sloty

No slots available for this component.