Input class

Contains WidgetElement that contains a virtual node with the <input> tag.

Constructors

Input(dynamic value)
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user. Read more...

Properties

hashCode int
The hash code for this object.
no setterinherited
node → VirtualNodeWidget
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
Sets the WidgetElement HTML tag.
no getterinherited

Methods

$(WidgetElement element) → WidgetElement
Adds the specified WidgetElement to WidgetElement from which the method was called. Think of it as an add, insert, etc. method.
inherited
$list(List<WidgetElement> elements) → WidgetElement
Adds the specified list with WidgetElement to the WidgetElement from which the method was called. Think of it as an add, insert, etc. method.
inherited
$slot(int id) → WidgetElement
Creates a slot for inserting a side Widget.
inherited
a(String name, dynamic value, {bool? removeIf}) → WidgetElement
Allows to create a custom HTML attribute, for example, if you can't find the desired one.
inherited
accept(String type, {bool? removeIf}) Input
Hint for expected file type in file upload controls. Read more...
accessKey(String key, {bool? removeIf}) → WidgetElement
The accesskey global attribute provides a hint for generating a keyboard shortcut for the current element. Read more...
inherited
alt(String text, {bool? removeIf}) Input
Alt attribute for the image type. Read more...
autoCapitalize(String value, {bool? removeIf}) → WidgetElement
The autocapitalize global attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. Read more...
inherited
autoComplete(String value, {bool? removeIf}) Input
Hint for form autofill feature. Read more...
autoFocus(bool boolean) → WidgetElement
The autofocus global attribute indicating that an element should be focused on page load, or when the <dialog> that it is part of is displayed. Read more...
inherited
capture(String media, {bool? removeIf}) Input
Media capture input method in file upload controls. Read more...
checked(bool boolean) Input
Whether the command or control is checked. Read more...
contentEditable(bool boolean, {bool? removeIf}) → WidgetElement
The contenteditable global attribute indicating if the element should be editable by the user. Read more...
inherited
dir(String dir, {bool? removeIf}) → WidgetElement
The dir global attribute that indicates the directionality of the element's text. Read more...
inherited
dirName(String name, {bool? removeIf}) Input
Name of form field to use for sending the element's directionality in form submission. Read more...
disabled(bool boolean) Input
Whether the form control is disabled. Read more...
draggable(bool boolean, {bool? removeIf}) → WidgetElement
The draggable global attribute attribute that indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API. Read more...
inherited
enterKeyHint(String key, {bool? removeIf}) → WidgetElement
The enterkeyhint global attribute defining what action label (or icon) to present for the enter key on virtual keyboards. Read more...
inherited
form(String id, {bool? removeIf}) Input
Associates the control with a form element. Read more...
formAction(String url, {bool? removeIf}) Input
URL to use for form submission. Read more...
formEncType(String value, {bool? removeIf}) Input
Form data set encoding type to use for form submission. Read more...
formMethod(String method, {bool? removeIf}) Input
HTTP method to use for form submission. Read more...
formNoValidate(bool boolean) Input
Bypass form control validation for form submission. Read more...
formTarget(String context, {bool? removeIf}) Input
Browsing context for form submission. Read more...
height(int pixels, {bool? removeIf}) Input
Same as height attribute for <img>. Read more...
hidden(bool boolean) → WidgetElement
The hidden global attribute indicating that the browser should not render the contents of the element. Read more...
inherited
id(String id, {bool? removeIf}) → WidgetElement
The id global attribute defines an identifier (ID) which must be unique in the whole document. Read more...
inherited
inputMode(String mode, {bool? removeIf}) → WidgetElement
The inputmode global attribute that hints at the type of data that might be entered by the user while editing the element or its contents. Read more...
inherited
itemId(String value, {bool? removeIf}) → WidgetElement
The itemid global attribute provides microdata in the form of a unique, global identifier of an item. Read more...
inherited
itemProp(String name, {bool? removeIf}) → WidgetElement
The itemprop global attribute is used to add properties to an item. Read more...
inherited
itemRef(String value, {bool? removeIf}) → WidgetElement
itemref provides a list of element IDs (not itemids) elsewhere in the document, with additional properties Read more...
inherited
itemScope(bool boolean) → WidgetElement
itemscope is a global attribute that defines the scope of associated metadata. Read more...
inherited
itemType(String url, {bool? removeIf}) → WidgetElement
The global attribute itemtype specifies the URL of the vocabulary that will be used to define itemprop's (item properties) in the data structure. Read more...
inherited
lang(String langCode, {bool? removeIf}) → WidgetElement
The lang global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user. Read more...
inherited
list(String id, {bool? removeIf}) Input
Value of the id attribute of the <datalist> of autocomplete options. Read more...
max(dynamic value, {bool? removeIf}) Input
Maximum value. Read more...
maxLength(num number, {bool? removeIf}) Input
Maximum length (number of characters) of value. Read more...
min(dynamic value, {bool? removeIf}) Input
Minimum value. Read more...
minLength(num number, {bool? removeIf}) Input
Minimum length (number of characters) of value. Read more...
multiple(bool boolean) Input
Whether to allow multiple values. Read more...
name(String name, {bool? removeIf}) Input
Name of the form control. Read more...
nonce(String crypto, {bool? removeIf}) → WidgetElement
The nonce global attribute defining a cryptographic nonce ("number used once") which can be used by Content Security Policy to determine whether or not a given fetch will be allowed to proceed for a given element. Read more...
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String eventName, dynamic fun(Element, Event)) → WidgetElement
Allows to create a custom HTML event, for example, if you can't find the desired one.
inherited
onAdd(dynamic fun(Element)?) → WidgetElement
The event is activated when an WidgetElement is added to the HTML DOM.
inherited
onBeforeCopy(dynamic fun(Element, Event)?) → WidgetElementVisible
The copy event fires when the user initiates a copy action through the browser's user interface. Read more...
inherited
onBeforeCut(dynamic fun(Element, Event)?) → WidgetElementVisible
The cut event fires when the user initiates a cut action through the browser's user interface. Read more...
inherited
onBeforePaste(dynamic fun(Element, Event)?) → WidgetElementVisible
The paste event is fired when the user has initiated a "paste" action through the browser's user interface. Read more...
inherited
onBlur(dynamic fun(Element, Event)?) → WidgetElementVisible
The blur event fires when an element has lost focus. Read more...
inherited
onChange(dynamic fun(Element, Event)?) Input
The change event is fired for <input>, <select>, and <textarea> elements when the user modifies the element's value. Read more...
onClick(dynamic fun(Element, Event)?) → WidgetElementVisible
An element receives a click event when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element. Read more...
inherited
onContextMenu(dynamic fun(Element, Event)?) → WidgetElementVisible
The contextmenu event fires when the user attempts to open a context menu. Read more...
inherited
onCopy(dynamic fun(Element, Event)?) → WidgetElementVisible
The copy event fires when the user initiates a copy action through the browser's user interface. Read more...
inherited
onCut(dynamic fun(Element, Event)?) → WidgetElementVisible
The cut event fires when the user initiates a cut action through the browser's user interface. Read more...
inherited
onDestroy(dynamic fun()?) → WidgetElement
The event is activated when Widget is removed from the Reio Virtual DOM.
inherited
onDoubleClick(dynamic fun(Element, Event)?) → WidgetElementVisible
The dblclick event fires when a pointing device button (such as a mouse's primary button) is double-clicked; that is, when it's rapidly clicked twice on a single element within a very short span of time. Read more...
inherited
onDrag(dynamic fun(Element, Event)?) → WidgetElementVisible
The drag event is fired every few hundred milliseconds as an element or text selection is being dragged by the user. Read more...
inherited
onDragEnd(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key). Read more...
inherited
onDragEnter(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key). Read more...
inherited
onDragLeave(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragleave event is fired when a dragged element or text selection leaves a valid drop target. Read more...
inherited
onDragOver(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). Read more...
inherited
onDragStart(dynamic fun(Element, Event)?) → WidgetElementVisible
The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds). Read more...
inherited
onDrop(dynamic fun(Element, Event)?) → WidgetElementVisible
The drop event is fired when an element or text selection is dropped on a valid drop target. Read more...
inherited
onFocus(dynamic fun(Element, Event)?) → WidgetElementVisible
The focus event fires when an element has received focus. The event does not bubble, but the related focusin event that follows does bubble. Read more...
inherited
onInput(dynamic fun(Element, Event)?) Input
The input event fires when the value of an <input>, <select>, or <textarea> element has been changed. Read more...
onInvalid(dynamic fun(Element, Event)?) Input
The invalid event fires when a submittable element has been checked for validity and doesn't satisfy its constraints. Read more...
onKeyDown(dynamic fun(Element, Event)?) → WidgetElementVisible
The keydown event is fired when a key is pressed. Read more...
inherited
onKeyUp(dynamic fun(Element, Event)?) → WidgetElementVisible
The keyup event is fired when a key is released. Read more...
inherited
onLoad(dynamic fun(Element, Event)?) Input
The load event is fired when the whole page has loaded, including all dependent resources such as stylesheets, scripts, iframes, and images. Read more...
onMount(dynamic fun(Element)?) → WidgetElement
The event is activated when Widget is mounted in the Reio Virtual DOM.
inherited
onMouseDown(dynamic fun(Element, Event)?) → WidgetElementVisible
The mousedown event is fired at an Element when a pointing device button is pressed while the pointer is inside the element. Read more...
inherited
onMouseEnter(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseenter event is fired at an Element when a pointing device (usually a mouse) is initially moved so that its hotspot is within the element at which the event was fired. Read more...
inherited
onMouseLeave(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseleave event is fired at an Element when the cursor of a pointing device (usually a mouse) is moved out of it. Read more...
inherited
onMouseMove(dynamic fun(Element, Event)?) → WidgetElementVisible
The mousemove event is fired at an element when a pointing device (usually a mouse) is moved while the cursor's hotspot is inside it. Read more...
inherited
onMouseOut(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseout event is fired at an Element when a pointing device (usually a mouse) is used to move the cursor so that it is no longer contained within the element or one of its children. Read more...
inherited
onMouseOver(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseover event is fired at an Element when a pointing device (such as a mouse or trackpad) is used to move the cursor onto the element or one of its child elements. Read more...
inherited
onMouseUp(dynamic fun(Element, Event)?) → WidgetElementVisible
The mouseup event is fired at an Element when a button on a pointing device (such as a mouse or trackpad) is released while the pointer is located inside it. Read more...
inherited
onPaste(dynamic fun(Element, Event)?) → WidgetElementVisible
The paste event is fired when the user has initiated a "paste" action through the browser's user interface. Read more...
inherited
onRemove(dynamic fun()?) → WidgetElement
The event is activated when an WidgetElement is removed from the HTML DOM.
inherited
onSelect(dynamic fun(Element, Event)?) Input
The select event fires when some text has been selected. Read more...
onTouchCancel(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchcancel event is fired when one or more touch points have been disrupted in an implementation-specific manner (for example, too many touch points are created). Read more...
inherited
onTouchEnd(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchend event fires when one or more touch points are removed from the touch surface. Read more...
inherited
onTouchMove(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchmove event is fired when one or more touch points are moved along the touch surface. Read more...
inherited
onTouchStart(dynamic fun(Element, Event)?) → WidgetElementVisible
The touchstart event is fired when one or more touch points are placed on the touch surface. Read more...
inherited
onTransitionEnd(dynamic fun(Element, Event)?) → WidgetElementVisible
The transitionend event is fired when a CSS transition has completed. Read more...
inherited
onWheel(dynamic fun(Element, Event)?) → WidgetElementVisible
The wheel event fires when the user rotates a wheel button on a pointing device (typically a mouse). Read more...
inherited
pattern(RegExp exp, {bool? removeIf}) Input
Pattern the value must match to be valid. Read more...
placeholder(String text, {bool? removeIf}) Input
Text that appears in the form control when it has no value set. Read more...
readOnly(bool boolean) Input
The value is not editable. Read more...
remove({required Widget widget}) → WidgetElement
Removes WidgetElement from the HTML DOM.
inherited
removeIf({required Widget widget, required bool condition()?}) → WidgetElement
Removes WidgetElement from the HTML DOM if the condition is true.
inherited
removeIfTrue({required Widget widget, required int slot, required bool condition()?}) → WidgetElement
Removes WidgetElement from the HTML DOM if the condition is true and adds it using $ method if it is false.
inherited
required(bool boolean) Input
A value is required or must be check for the form to be submittable. Read more...
setJump(Map<int, WidgetElement> map) → WidgetElement
Splits the value into the specified elements. Accepts a map with the widget key, works together with the getJump function.
inherited
size(int number, {bool? removeIf}) Input
Size of the control. Read more...
spellCheck(bool boolean, {bool? removeIf}) → WidgetElement
The spellcheck global attribute that defines whether the element may be checked for spelling errors. Read more...
inherited
src(String url, {bool? removeIf}) Input
Same as src attribute for <img>. Read more...
step(int number, {bool? removeIf}) Input
Incremental values that are valid. Read more...
style(List<String> styleList, {bool? removeIf}) → WidgetElement
The style global attribute contains CSS styling declarations to be applied to the element. Read more...
inherited
tabIndex(int number, {bool? removeIf}) → WidgetElement
The tabindex global attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. Read more...
inherited
thisClass(List<String> nameList, {bool? removeIf}) → WidgetElement
The class global attribute is a list of the case-sensitive classes of the element. Read more...
inherited
thisIs(String elementName, {bool? removeIf}) → WidgetElement
The is global attribute allows you to specify that a standard HTML element should behave like a defined custom built-in element (see Using custom elements for more details). Read more...
inherited
title(String text, {bool? removeIf}) → WidgetElement
The title global attribute contains text representing advisory information related to the element it belongs to. Read more...
inherited
toString() String
A string representation of this object.
inherited
translate(String value, {bool? removeIf}) → WidgetElement
The translate global attribute that is used to specify whether an element's translatable attribute values and its Text node children should be translated when the page is localized, or whether to leave them unchanged. Read more...
inherited
type(String inputTypes, {bool? removeIf}) Input
Type of form control. Read more...
width(int pixels, {bool? removeIf}) Input
Same as width attribute for <img>. Read more...

Operators

operator ==(Object other) bool
The equality operator.
inherited