Input - Code
Basic
Disabled
Label
Pattern
Readonly
Types
Validation
Slots
API for ix-input
Properties
The allowed characters pattern for the text field.
allowed-characters-patternstring | undefinedSpecifies whether the text field is disabled.
disabledbooleanfalseThe helper text for the text field.
helper-textstring | undefinedThe info text for the text field.
info-textstring | undefinedThe error text for the text field.
invalid-textstring | undefinedThe label for the text field.
labelstring | undefinedThe maximum length of the text field.
max-lengthnumber | undefinedThe minimum length of the text field.
min-lengthnumber | undefinedThe name of the text field.
namestring | undefinedThe pattern for the text field.
patternstring | undefinedThe placeholder text for the text field.
placeholderstring | undefinedSpecifies whether the text field is readonly.
readonlybooleanfalseSpecifies whether the text field is required.
requiredbooleanfalseSpecifies whether to show the text as a tooltip.
show-text-as-tooltipboolean | undefinedIf false, pressing Enter will submit the form (if inside a form).
Set to true to suppress submit on Enter.
suppress-submit-on-enterbooleanfalseText alignment within the input. 'start' aligns the text to the start of the input, 'end' aligns the text to the end of the input.
text-alignment"end" | "start"'start'The type of the text field. Possible values are 'text', 'email', or 'password'.
type"email" | "password" | "tel" | "text" | "url"'text'The valid text for the text field.
valid-textstring | undefinedThe value of the text field.
valuestring''The warning text for the text field.
warning-textstring | undefinedMethods
Events
Event emitted when the text field loses focus.
ixBlurvoidEvent emitted when the text field loses focus and the value has changed.
ixChangestringEvent emitted when the validity state of the text field changes.
validityStateChangeValidityStateEvent emitted when the value of the text field changes.
valueChangestringSlot
Element will be displayed at the end of the input
Element will be displayed at the start of the input