HTMLInputElement
Overview
The HTMLInputElement interface provides special properties and methods for manipulating the options, layout, and presentation of <input> elements.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
- Ancestry: EventTarget | Node | Element | HTMLElement | HTMLInputElement
autocomplete
property autocomplete: dynamic read write;
dynamic autocomplete { get; set; }
var autocomplete: dynamic { get{} set{} }
dynamic autocomplete { __get; __set; }
Property autocomplete() As dynamic
autofocus
property autofocus: Boolean read write;
Boolean autofocus { get; set; }
var autofocus: Boolean { get{} set{} }
Boolean autofocus { __get; __set; }
Property autofocus() As Boolean
checkValidity
Immediately runs the validity check on the element, triggering the document to fire the invalid event at the element if the value isn't valid.
method checkValidity
void checkValidity()
func checkValidity()
void checkValidity()
Sub checkValidity()
disabled
property disabled: Boolean read write;
Boolean disabled { get; set; }
var disabled: Boolean { get{} set{} }
Boolean disabled { __get; __set; }
Property disabled() As Boolean
form
property form: String read write;
String form { get; set; }
var form: String { get{} set{} }
String form { __get; __set; }
Property form() As String
inputmode
property inputmode: String read write;
String inputmode { get; set; }
var inputmode: String { get{} set{} }
String inputmode { __get; __set; }
Property inputmode() As String
pattern
property pattern: String read write;
String pattern { get; set; }
var pattern: String { get{} set{} }
String pattern { __get; __set; }
Property pattern() As String
placeholder
property placeholder: String read write;
String placeholder { get; set; }
var placeholder: String { get{} set{} }
String placeholder { __get; __set; }
Property placeholder() As String
reportValidity
Returns true if the element's value passes validity checks; otherwise, returns false.
method reportValidity: Boolean
Boolean reportValidity()
func reportValidity() -> Boolean
Boolean reportValidity()
Function reportValidity() As Boolean
select
Selects the entire content of the <input> element, if the element's content is selectable. For elements with no selectable text content (such as a visual color picker or calendar date input), this method does nothing.
method select
void select()
func select()
void select()
Sub select()
setCustomValidity
Sets a custom message to display if the input element's value isn't valid.
method setCustomValidity(aParam: String)
void setCustomValidity(String aParam)
func setCustomValidity(_ aParam: String)
void setCustomValidity(String aParam)
Sub setCustomValidity(aParam As String)
Parameters:
- aParam:
setRangeText
Sets the contents of the specified range of characters in the input element to a given string. A selectMode parameter is available to allow controlling how the existing content is affected.
method setRangeText(aParam: String)
void setRangeText(String aParam)
func setRangeText(_ aParam: String)
void setRangeText(String aParam)
Sub setRangeText(aParam As String)
Parameters:
- aParam:
setSelectionRange (dynamic, dynamic)
Selects the specified range of characters within a textual input element. Does nothing for inputs which aren't presented as text input fields.
method setSelectionRange(selectionStart: dynamic; selectionEnd: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd)
func setSelectionRange(_ selectionStart: dynamic, _ selectionEnd: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd)
Sub setSelectionRange(selectionStart As dynamic, selectionEnd As dynamic)
Parameters:
- selectionStart:
- selectionEnd:
setSelectionRange (dynamic, dynamic, dynamic)
Selects the specified range of characters within a textual input element. Does nothing for inputs which aren't presented as text input fields.
method setSelectionRange(selectionStart: dynamic; selectionEnd: dynamic; selectionDirection: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd, dynamic selectionDirection)
func setSelectionRange(_ selectionStart: dynamic, _ selectionEnd: dynamic, _ selectionDirection: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd, dynamic selectionDirection)
Sub setSelectionRange(selectionStart As dynamic, selectionEnd As dynamic, selectionDirection As dynamic)
Parameters:
- selectionStart:
- selectionEnd:
- selectionDirection:
stepDown
Decrements the value of a numeric input by one, by default, or by the specified number of units.
method stepDown(stepIncrement: dynamic)
void stepDown(dynamic stepIncrement)
func stepDown(_ stepIncrement: dynamic)
void stepDown(dynamic stepIncrement)
Sub stepDown(stepIncrement As dynamic)
Parameters:
- stepIncrement:
stepUp
Increments the value of a numeric input by one or by the specified number of units.
method stepUp(stepIncrement: dynamic)
void stepUp(dynamic stepIncrement)
func stepUp(_ stepIncrement: dynamic)
void stepUp(dynamic stepIncrement)
Sub stepUp(stepIncrement As dynamic)
Parameters:
- stepIncrement:
type
property type: String read write;
String type { get; set; }
var type: String { get{} set{} }
String type { __get; __set; }
Property type() As String
value
autocomplete
property autocomplete: dynamic read write;
dynamic autocomplete { get; set; }
var autocomplete: dynamic { get{} set{} }
dynamic autocomplete { __get; __set; }
Property autocomplete() As dynamic
autofocus
property autofocus: Boolean read write;
Boolean autofocus { get; set; }
var autofocus: Boolean { get{} set{} }
Boolean autofocus { __get; __set; }
Property autofocus() As Boolean
disabled
property disabled: Boolean read write;
Boolean disabled { get; set; }
var disabled: Boolean { get{} set{} }
Boolean disabled { __get; __set; }
Property disabled() As Boolean
form
property form: String read write;
String form { get; set; }
var form: String { get{} set{} }
String form { __get; __set; }
Property form() As String
inputmode
property inputmode: String read write;
String inputmode { get; set; }
var inputmode: String { get{} set{} }
String inputmode { __get; __set; }
Property inputmode() As String
pattern
property pattern: String read write;
String pattern { get; set; }
var pattern: String { get{} set{} }
String pattern { __get; __set; }
Property pattern() As String
placeholder
property placeholder: String read write;
String placeholder { get; set; }
var placeholder: String { get{} set{} }
String placeholder { __get; __set; }
Property placeholder() As String
type
property type: String read write;
String type { get; set; }
var type: String { get{} set{} }
String type { __get; __set; }
Property type() As String
value
checkValidity
Immediately runs the validity check on the element, triggering the document to fire the invalid event at the element if the value isn't valid.
method checkValidity
void checkValidity()
func checkValidity()
void checkValidity()
Sub checkValidity()
reportValidity
Returns true if the element's value passes validity checks; otherwise, returns false.
method reportValidity: Boolean
Boolean reportValidity()
func reportValidity() -> Boolean
Boolean reportValidity()
Function reportValidity() As Boolean
select
Selects the entire content of the <input> element, if the element's content is selectable. For elements with no selectable text content (such as a visual color picker or calendar date input), this method does nothing.
method select
void select()
func select()
void select()
Sub select()
setCustomValidity
Sets a custom message to display if the input element's value isn't valid.
method setCustomValidity(aParam: String)
void setCustomValidity(String aParam)
func setCustomValidity(_ aParam: String)
void setCustomValidity(String aParam)
Sub setCustomValidity(aParam As String)
Parameters:
- aParam:
setRangeText
Sets the contents of the specified range of characters in the input element to a given string. A selectMode parameter is available to allow controlling how the existing content is affected.
method setRangeText(aParam: String)
void setRangeText(String aParam)
func setRangeText(_ aParam: String)
void setRangeText(String aParam)
Sub setRangeText(aParam As String)
Parameters:
- aParam:
setSelectionRange (dynamic, dynamic)
Selects the specified range of characters within a textual input element. Does nothing for inputs which aren't presented as text input fields.
method setSelectionRange(selectionStart: dynamic; selectionEnd: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd)
func setSelectionRange(_ selectionStart: dynamic, _ selectionEnd: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd)
Sub setSelectionRange(selectionStart As dynamic, selectionEnd As dynamic)
Parameters:
- selectionStart:
- selectionEnd:
setSelectionRange (dynamic, dynamic, dynamic)
Selects the specified range of characters within a textual input element. Does nothing for inputs which aren't presented as text input fields.
method setSelectionRange(selectionStart: dynamic; selectionEnd: dynamic; selectionDirection: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd, dynamic selectionDirection)
func setSelectionRange(_ selectionStart: dynamic, _ selectionEnd: dynamic, _ selectionDirection: dynamic)
void setSelectionRange(dynamic selectionStart, dynamic selectionEnd, dynamic selectionDirection)
Sub setSelectionRange(selectionStart As dynamic, selectionEnd As dynamic, selectionDirection As dynamic)
Parameters:
- selectionStart:
- selectionEnd:
- selectionDirection:
stepDown
Decrements the value of a numeric input by one, by default, or by the specified number of units.
method stepDown(stepIncrement: dynamic)
void stepDown(dynamic stepIncrement)
func stepDown(_ stepIncrement: dynamic)
void stepDown(dynamic stepIncrement)
Sub stepDown(stepIncrement As dynamic)
Parameters:
- stepIncrement:
stepUp
Increments the value of a numeric input by one or by the specified number of units.
method stepUp(stepIncrement: dynamic)
void stepUp(dynamic stepIncrement)
func stepUp(_ stepIncrement: dynamic)
void stepUp(dynamic stepIncrement)
Sub stepUp(stepIncrement As dynamic)
Parameters:
- stepIncrement:
- HTMLInputButtonElement
- HTMLInputCheckboxElement
- HTMLInputColorElement
- HTMLInputDateElement
- HTMLInputDatTimeLocalElement
- HTMLInputEmailElement
- HTMLInputFileElement
- HTMLInputHiddenElement
- HTMLInputImageElement
- HTMLInputMonthElement
- HTMLInputNumberElement
- HTMLInputPasswordElement
- HTMLInputRadioElement
- HTMLInputRangeElement
- HTMLInputResetElement
- HTMLInputSearchElement
- HTMLInputSubmitElement
- HTMLInputTelElement
- HTMLInputTextElement
- HTMLInputTimeElement
- HTMLInputUrlElement
- HTMLInputWeekElement