Input
Attributes
- Graph
-
- Supertypes
-
trait ControlledInputclass WebComponenttrait CommonTypesclass Objecttrait Matchableclass AnyShow all
- Self type
-
Input.type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
HTMLInputElement
Attributes
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
- Self type
-
RawImport.type
Types
Inherited types
Attributes
- Inherited from:
- WebComponent
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- WebComponent
Attributes
- Inherited from:
- WebComponent
Attributes
- Inherited from:
- CommonTypes
Value members
Inherited methods
Instantiate this component using the specified modifiers.
Instantiate this component using the specified modifiers.
Modifiers can be the usual Laminar modifiers (e.g. onDblClick --> observer), or they can be functions from this component to a modifier (e.g. _.onClick --> observer)
Scala 2 does not support union types, so use the of method instead.
IntelliJ is unable to provide autocompletion when using this method, so I suggest using of too. Upvote https://youtrack.jetbrains.com/issue/SCL-21713/Method-accepting-a-union-of-types-that-includes-a-Function-type-problems-with-go-to-definition-type-hints-and-autocomplete-Scala
Attributes
- Inherited from:
- WebComponent
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Creates controlled input block.
Creates controlled input block.
Works similarly to standard Laminar controlled inputs, except you need to check what prop and event(s) a particular Web Component expects.
For general info, see Controlled Inputs docs
Attributes
- Inherited from:
- ControlledInput
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Instantiate this component with the specified modifiers.
Instantiate this component with the specified modifiers.
To pass standard Laminar modifiers with this method, use _ => onDblClick --> observer
.
Same as apply, but only accepts scoped functions for modifiers.
Attributes
- Inherited from:
- WebComponent
Optional syntax for using built-in Laminar events: _.on(onDblClick.preventDefault) --> ...
Optional syntax for using built-in Laminar events: _.on(onDblClick.preventDefault) --> ...
Attributes
- Inherited from:
- WebComponent
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- WebComponent
Attributes
- Inherited from:
- CommonTypes
Attributes
- Inherited from:
- WebComponent
Concrete fields
The type of input. Works the same as a native <input>
element, but only a subset of types are supported. Defaults to text
.
The type of input. Works the same as a native <input>
element, but only a subset of types are supported. Defaults to text
.
Attributes
Controls whether and how text input is automatically capitalized as it is entered by the user.
Controls whether and how text input is automatically capitalized as it is entered by the user.
Attributes
Specifies what permission the browser has to provide assistance in filling out form field values. Refer to this page on MDN for available values.
Specifies what permission the browser has to provide assistance in filling out form field values. Refer to this page on MDN for available values.
Attributes
Indicates whether the browser's autocorrect feature is on or off.
Indicates whether the browser's autocorrect feature is on or off.
Attributes
Indicates that the input should receive focus on page load.
Indicates that the input should receive focus on page load.
Attributes
Adds a clear button when the input is not empty.
Adds a clear button when the input is not empty.
Attributes
The current value of the input, submitted as a name/value pair with form data.
The current value of the input, submitted as a name/value pair with form data.
Attributes
Disables the input.
Disables the input.
Attributes
Used to customize the label or icon of the Enter key on virtual keyboards.
Used to customize the label or icon of the Enter key on virtual keyboards.
Attributes
Draws a filled input.
Draws a filled input.
Attributes
By default, form controls are associated with the nearest containing <form>
element. This attribute allows you to place the form control outside of a form and associate it with the form that has this id
. The form must be in the same document or shadow root for this to work.
By default, form controls are associated with the nearest containing <form>
element. This attribute allows you to place the form control outside of a form and associate it with the form that has this id
. The form must be in the same document or shadow root for this to work.
Attributes
The input's help text. If you need to display HTML, use the help-text
slot instead.
The input's help text. If you need to display HTML, use the help-text
slot instead.
Attributes
Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual keyboard on supportive devices.
Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual keyboard on supportive devices.
Attributes
The input's label. If you need to display HTML, use the label
slot instead.
The input's label. If you need to display HTML, use the label
slot instead.
Attributes
The input's maximum value. Only applies to date and number input types.
The input's maximum value. Only applies to date and number input types.
Attributes
The maximum length of input that will be considered valid.
The maximum length of input that will be considered valid.
Attributes
The input's minimum value. Only applies to date and number input types.
The input's minimum value. Only applies to date and number input types.
Attributes
The minimum length of input that will be considered valid.
The minimum length of input that will be considered valid.
Attributes
The name of the input, submitted as a name/value pair with form data.
The name of the input, submitted as a name/value pair with form data.
Attributes
Hides the browser's built-in increment/decrement spin buttons for number inputs.
Hides the browser's built-in increment/decrement spin buttons for number inputs.
Attributes
Emitted when the control loses focus.
Emitted when the control loses focus.
Attributes
Emitted when an alteration to the control's value is committed by the user.
Emitted when an alteration to the control's value is committed by the user.
Attributes
Emitted when the clear button is activated.
Emitted when the clear button is activated.
Attributes
Emitted when the control gains focus.
Emitted when the control gains focus.
Attributes
Emitted when the control receives input.
Emitted when the control receives input.
Attributes
Emitted when the form control has been checked for validity and its constraints aren't satisfied.
Emitted when the form control has been checked for validity and its constraints aren't satisfied.
Attributes
Adds a button to toggle the password's visibility. Only applies to password types.
Adds a button to toggle the password's visibility. Only applies to password types.
Attributes
Determines whether or not the password is currently visible. Only applies to password input types.
Determines whether or not the password is currently visible. Only applies to password input types.
Attributes
A regular expression pattern to validate input against.
A regular expression pattern to validate input against.
Attributes
Draws a pill-style input with rounded edges.
Draws a pill-style input with rounded edges.
Attributes
Placeholder text to show as a hint when the input is empty.
Placeholder text to show as a hint when the input is empty.
Attributes
Makes the input readonly.
Makes the input readonly.
Attributes
Makes the input a required field.
Makes the input a required field.
Attributes
Enables spell checking on the input.
Enables spell checking on the input.
Attributes
Specifies the granularity that the value must adhere to, or the special value any
which means no stepping is implied, allowing any numeric value. Only applies to date and number input types.
Specifies the granularity that the value must adhere to, or the special value any
which means no stepping is implied, allowing any numeric value. Only applies to date and number input types.
Attributes
The current value of the input, submitted as a name/value pair with form data.
The current value of the input, submitted as a name/value pair with form data.