1.1.0 • Published 4 months ago

@atmgrupomaggioli/iris-switch v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

iris-switch

Properties

PropertyAttributeDescriptionTypeDefault
checkedcheckedDefine si el switch está activado.booleanfalse
disableddisabledDefine si el switch está deshabilitado.booleanfalse
label (required)labelTexto descriptivo que acompaña al switchstringundefined
namename Nombre del switch - Se usa para identificar el switch en formularios.stringundefined

Events

EventDescriptionType
toggleSe emite al cambiar el estado.CustomEvent<{ checked: boolean; }>

Methods

clear() => Promise<void>

Resetea el valor del switch.

Returns

Type: Promise<void>

getValue() => Promise<boolean>

Verifica si el switch está activado.

Returns

Type: Promise<boolean>

setValue(value: boolean) => Promise<void>

Establece el valor del switch.

Parameters

NameTypeDescription
valueboolean

Returns

Type: Promise<void>


Built with StencilJS

1.1.0

4 months ago

1.0.2

5 months ago

1.0.1

7 months ago

1.0.0

7 months ago