Search

Find components, guides, and documentation

Input Stepper: API Table

class: LionInputStepper, lion-input-stepper

Fields

NamePrivacyTypeDefaultDescriptionInherited From
currentValuepublic
formatterpublicformatNumber
maxpublicnumberInfinity
minpublicnumberInfinity
parserpublicparseNumber
placeholderpublicstring''LionInput
readOnlypublicbooleanfalseA Boolean attribute which, if present, indicates that the user should not be able to edit the value of the input. The difference between disabled and readonly is that read-only controls can still function, whereas disabled controls generally do not function as controls until they are enabled. (From: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-readonly)LionInput
slotspublicLionInput
steppublicnumber1
timerpublicReturnType<typeof setTimeout> | undefinedundefinedId of the timeout that clears the visually hidden value text again. Declared as `ReturnType<typeof setTimeout>` rather than left to inference: with `@types/node` in the type build, inference puts `NodeJS.Timeout` in the declarations, which consumers that do not load node types cannot resolve.
typepublicstring'text'LionInput
valuespublicobject{ max: this.max, min: this.min, step: this.step, }
valueTextMappingpublic{[key: number]: string}{}The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow.
_feedbackConditionMetaprotectedLionField
_focusableNodeprotectedLionField
_inputNodeprotectedHTMLInputElementLionInput

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
_decrementprotectedDecrement the value based on given step or default step value is 1ev: Event
_decrementorSignTemplateprotectedGet the decrementor button sign templateString|TemplateResult
_decrementorTemplateprotectedGet the increment button templateTemplateResult
_destroyOutputContentprotected
_incrementprotectedIncrement the value based on given step or default step value is 1ev: Event
_incrementorSignTemplateprotectedGet the incrementor button sign templateString|TemplateResult
_incrementorTemplateprotectedGet the decrement button templateTemplateResult
_inputGroupTemplateprotected
_onChangeprotectedToggle +/- buttons on changeev: Event=LionField
_updateAriaAttributesprotected

Events

NameTypeDescriptionInherited From
user-input-changedEventLionField

Attributes

NameFieldInherited From
minmin
maxmax
valueTextMappingvalueTextMapping
stepstep
readonlyreadOnlyLionInput
typetypeLionInput
placeholderplaceholderLionInput