Search

Find components, guides, and documentation

Switch: API Table

class: LionSwitch, lion-switch

Fields

NamePrivacyTypeDefaultDescriptionInherited From
checkedpublicbooleanfalse
slotspublic
_feedbackConditionMetaprotectedLionField
_focusableNodeprotectedLionField
_inputNodeprotectedLionSwitchButtonInput node here is the lion-switch-button, which is not compatible with LionField _inputNode —> HTMLInputElement Therefore we do a full override and typecast to an intersection type that includes LionSwitchButton

Methods

NamePrivacyDescriptionParametersReturnInherited From
clearpublicClears modelValue. Interaction states are not cleared (use resetInteractionState for this)LionField
resetpublicResets modelValue to initial value. Interaction states are clearedLionField
resetInteractionStatepublicLionField
_groupOneTemplateprotected
_groupTwoTemplateprotected
_isEmptyprotectedOverride this function from ChoiceInputMixin.
_onChangeprotectedDispatches custom bubble eventev: Event=LionField
_onLabelClickprotected
_syncButtonSwitchprotected
_toggleCheckedprotectedOverride this function from ChoiceInputMixin.ev: Event

Events

NameTypeDescriptionInherited From
user-input-changedEventLionField

class: LionSwitchButton, lion-switch-button

Fields

NamePrivacyTypeDefaultDescriptionInherited From
checkedpublicbooleanfalse
readOnlypublicbooleanfalse
valuepublicstring''

Methods

NamePrivacyDescriptionParametersReturnInherited From
_handleKeydownprotectedev: KeyboardEvent
_handleKeyupprotectedev: KeyboardEvent
_toggleCheckedprotected

Events

NameTypeDescriptionInherited From
checked-changedEvent

Attributes

NameFieldInherited From
checkedchecked
readonlyreadOnly