public class HTMLInputElement extends HTMLElement
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<String> |
accept
Sets or retrieves a comma-separated list of content types.
|
Objs.Property<String> |
align
Sets or retrieves how the object is aligned with adjacent text.
|
Objs.Property<String> |
alt
Sets or retrieves a text alternative to the graphic.
|
Objs.Property<String> |
autocomplete
Specifies whether autocomplete is applied to an editable text field.
|
Objs.Property<Boolean> |
autofocus
Provides a way to direct a user to a specific field when a document loads.
|
Objs.Property<String> |
border
Sets or retrieves the width of the border to draw around the object.
|
Objs.Property<Boolean> |
complete
Retrieves whether the object is fully loaded.
|
Objs.Property<Boolean> |
defaultChecked
Sets or retrieves the state of the check box or radio button.
|
Objs.Property<String> |
defaultValue
Sets or retrieves the initial contents of the object.
|
Objs.Property<Boolean> |
disabled |
Objs.Property<FileList> |
files
Returns a FileList object on a file type input object.
|
Objs.Property<HTMLFormElement> |
form
Retrieves a reference to the form that the object is embedded in.
|
Objs.Property<String> |
formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element.
|
Objs.Property<String> |
formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element.
|
Objs.Property<String> |
formMethod
Overrides the submit method attribute previously specified on a form element.
|
Objs.Property<String> |
formNoValidate
Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation.
|
Objs.Property<String> |
formTarget
Overrides the target attribute on a form element.
|
Objs.Property<String> |
height
Sets or retrieves the height of the object.
|
Objs.Property<Number> |
hspace
Sets or retrieves the width of the border to draw around the object.
|
Objs.Property<Boolean> |
checked
Sets or retrieves the state of the check box or radio button.
|
Objs.Property<Boolean> |
indeterminate |
Objs.Property<HTMLElement> |
list
Specifies the ID of a pre-defined datalist of options for an input element.
|
Objs.Property<String> |
max
Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
|
Objs.Property<Number> |
maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
Objs.Property<String> |
min
Defines the minimum acceptable value for an input element with type="number".
|
Objs.Property<Boolean> |
multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
Objs.Property<String> |
name
Sets or retrieves the name of the object.
|
Objs.Property<String> |
pattern
Gets or sets a string containing a regular expression that the user's input must match.
|
Objs.Property<String> |
placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
|
Objs.Property<Boolean> |
readOnly |
Objs.Property<Boolean> |
required
When present, marks an element that can't be submitted without a value.
|
Objs.Property<Number> |
selectionEnd
Gets or sets the end position or offset of a text selection.
|
Objs.Property<Number> |
selectionStart
Gets or sets the starting position or offset of a text selection.
|
Objs.Property<Number> |
size |
Objs.Property<String> |
src
The address or URL of the a media resource that is to be considered.
|
Objs.Property<Boolean> |
status |
Objs.Property<String> |
step
Defines an increment or jump between values that you want to allow the user to enter.
|
Objs.Property<String> |
type
Returns the content type of the object.
|
Objs.Property<String> |
useMap
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
|
Objs.Property<String> |
validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message.
|
Objs.Property<ValidityState> |
validity
Returns a ValidityState object that represents the validity states of an element.
|
Objs.Property<String> |
value
Returns the value of the data at the cursor's current position.
|
Objs.Property<Date> |
valueAsDate |
Objs.Property<Number> |
valueAsNumber
Returns the input field value as a number.
|
Objs.Property<Number> |
vspace
Sets or retrieves the vertical margin for the object.
|
Objs.Property<String> |
width
Sets or retrieves the width of the object.
|
Objs.Property<Boolean> |
willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints.
|
accessKey, contentEditable, dataset, dir, draggable, hidden, hideFocus, children, innerHTML, innerText, isContentEditable, lang, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, onabort, onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate, onbeforepaste, onblur, oncanplay, oncanplaythrough, onclick, oncontextmenu, oncopy, oncuechange, oncut, ondblclick, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onchange, oninput, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onmscontentzoom, onmsmanipulationstatechanged, onpaste, onpause, onplay, onplaying, onprogress, onratechange, onreset, onscroll, onseeked, onseeking, onselect, onselectstart, onstalled, onsubmit, onsuspend, ontimeupdate, onvolumechange, onwaiting, outerHTML, outerText, spellcheck, style, tabIndex, title
classList, className, clientHeight, clientLeft, clientTop, clientWidth, id, msContentZoomFactor, msRegionOverflow, onariarequest, oncommand, ongotpointercapture, onlostpointercapture, onmsgesturedoubletap, onmsgestureend, onmsgesturehold, onmsgesturechange, onmsgesturestart, onmsgesturetap, onmsgotpointercapture, onmsinertiastart, onmslostpointercapture, onmspointercancel, onmspointerdown, onmspointerenter, onmspointerleave, onmspointermove, onmspointerout, onmspointerover, onmspointerup, ontouchcancel, ontouchend, ontouchmove, ontouchstart, onwebkitfullscreenerror, onwebkitfullscreenchange, scrollHeight, scrollLeft, scrollTop, scrollWidth, tagName
ATTRIBUTE_NODE, attributes, baseURI, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, firstChild, childNodes, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, NOTATION_NODE, ownerDocument, parentElement, parentNode, prefix, previousSibling, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent
Modifier | Constructor and Description |
---|---|
protected |
HTMLInputElement(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static HTMLInputElement |
$as(Object obj) |
String |
accept() |
String |
align() |
String |
alt() |
String |
autocomplete() |
Boolean |
autofocus() |
String |
border() |
Boolean |
complete() |
TextRange |
createTextRange()
Creates a TextRange object for the element.
|
Boolean |
defaultChecked() |
String |
defaultValue() |
Boolean |
disabled() |
FileList |
files() |
HTMLFormElement |
form() |
String |
formAction() |
String |
formEnctype() |
String |
formMethod() |
String |
formNoValidate() |
String |
formTarget() |
String |
height() |
Number |
hspace() |
Boolean |
checked() |
Boolean |
checkValidity()
Returns whether a form will validate when it is submitted, without having to submit it.
|
Boolean |
indeterminate() |
HTMLElement |
list() |
String |
max() |
Number |
maxLength() |
String |
min() |
Boolean |
multiple() |
String |
name() |
String |
pattern() |
String |
placeholder() |
Boolean |
readOnly() |
Boolean |
required() |
void |
select()
Makes the selection equal to the current object.
|
Number |
selectionEnd() |
Number |
selectionStart() |
void |
setCustomValidity(String error)
Sets a custom error message that is displayed when a form is submitted.
|
void |
setSelectionRange(double start,
double end)
Sets the start and end positions of a selection in a text field.
|
Number |
size() |
String |
src() |
Boolean |
status() |
String |
step() |
void |
stepDown()
Decrements a range input control's value by the value given by the Step attribute.
|
void |
stepDown(double n)
Decrements a range input control's value by the value given by the Step attribute.
|
void |
stepUp()
Increments a range input control's value by the value given by the Step attribute.
|
void |
stepUp(double n)
Increments a range input control's value by the value given by the Step attribute.
|
String |
type() |
String |
useMap() |
String |
validationMessage() |
ValidityState |
validity() |
String |
value() |
Date |
valueAsDate() |
Number |
valueAsNumber() |
Number |
vspace() |
String |
width() |
Boolean |
willValidate() |
accessKey, addEventListener, addEventListener, addEventListener, addEventListener, addEventListener, addEventListener, blur, click, contains, contentEditable, dataset, dir, dragDrop, draggable, focus, hidden, hideFocus, children, innerHTML, innerText, insertAdjacentElement, insertAdjacentHTML, insertAdjacentText, isContentEditable, lang, msGetInputContext, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, onabort, onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate, onbeforepaste, onblur, oncanplay, oncanplaythrough, onclick, oncontextmenu, oncopy, oncuechange, oncut, ondblclick, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onchange, oninput, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onmscontentzoom, onmsmanipulationstatechanged, onpaste, onpause, onplay, onplaying, onprogress, onratechange, onreset, onscroll, onseeked, onseeking, onselect, onselectstart, onstalled, onsubmit, onsuspend, ontimeupdate, onvolumechange, onwaiting, outerHTML, outerText, scrollIntoView, scrollIntoView, setActive, spellcheck, style, tabIndex, title
classList, className, clientHeight, clientLeft, clientTop, clientWidth, getAttribute, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClientRects, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, id, msContentZoomFactor, msGetRegionContent, msGetUntransformedBounds, msMatchesSelector, msRegionOverflow, msReleasePointerCapture, msSetPointerCapture, msZoomTo, onariarequest, oncommand, ongotpointercapture, onlostpointercapture, onmsgesturedoubletap, onmsgestureend, onmsgesturehold, onmsgesturechange, onmsgesturestart, onmsgesturetap, onmsgotpointercapture, onmsinertiastart, onmslostpointercapture, onmspointercancel, onmspointerdown, onmspointerenter, onmspointerleave, onmspointermove, onmspointerout, onmspointerover, onmspointerup, ontouchcancel, ontouchend, ontouchmove, ontouchstart, onwebkitfullscreenerror, onwebkitfullscreenchange, releasePointerCapture, removeAttribute, removeAttribute, removeAttributeNode, removeAttributeNS, requestFullscreen, requestPointerLock, scrollHeight, scrollLeft, scrollTop, scrollWidth, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setPointerCapture, tagName, webkitMatchesSelector, webkitRequestFullscreen, webkitRequestFullScreen
appendChild, ATTRIBUTE_NODE, attributes, baseURI, CDATA_SECTION_NODE, cloneNode, cloneNode, COMMENT_NODE, compareDocumentPosition, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, firstChild, hasAttributes, hasChildNodes, childNodes, insertBefore, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lastChild, localName, lookupNamespaceURI, lookupPrefix, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, NOTATION_NODE, ownerDocument, parentElement, parentNode, prefix, previousSibling, PROCESSING_INSTRUCTION_NODE, removeChild, replaceChild, TEXT_NODE, textContent
dispatchEvent, removeEventListener, removeEventListener, removeEventListener, removeEventListener
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<String> accept
public Objs.Property<String> align
public Objs.Property<String> alt
public Objs.Property<String> autocomplete
public Objs.Property<Boolean> autofocus
public Objs.Property<String> border
public Objs.Property<Boolean> checked
public Objs.Property<Boolean> complete
public Objs.Property<Boolean> defaultChecked
public Objs.Property<String> defaultValue
public Objs.Property<Boolean> disabled
public Objs.Property<FileList> files
public Objs.Property<HTMLFormElement> form
public Objs.Property<String> formAction
public Objs.Property<String> formEnctype
public Objs.Property<String> formMethod
public Objs.Property<String> formNoValidate
public Objs.Property<String> formTarget
public Objs.Property<String> height
public Objs.Property<Number> hspace
public Objs.Property<Boolean> indeterminate
public Objs.Property<HTMLElement> list
public Objs.Property<String> max
public Objs.Property<Number> maxLength
public Objs.Property<String> min
public Objs.Property<Boolean> multiple
public Objs.Property<String> name
public Objs.Property<String> pattern
public Objs.Property<String> placeholder
public Objs.Property<Boolean> readOnly
public Objs.Property<Boolean> required
public Objs.Property<Number> selectionEnd
public Objs.Property<Number> selectionStart
public Objs.Property<Number> size
public Objs.Property<String> src
public Objs.Property<Boolean> status
public Objs.Property<String> step
public Objs.Property<String> type
public Objs.Property<String> useMap
public Objs.Property<String> validationMessage
public Objs.Property<ValidityState> validity
public Objs.Property<String> value
public Objs.Property<Date> valueAsDate
public Objs.Property<Number> valueAsNumber
public Objs.Property<Number> vspace
public Objs.Property<String> width
public Objs.Property<Boolean> willValidate
protected HTMLInputElement(Objs.Constructor<?> c, Object js)
public static HTMLInputElement $as(Object obj)
public String accept()
public String align()
public String alt()
public String autocomplete()
public Boolean autofocus()
public String border()
public Boolean checked()
public Boolean complete()
public Boolean defaultChecked()
public String defaultValue()
public Boolean disabled()
public FileList files()
public HTMLFormElement form()
public String formAction()
public String formEnctype()
public String formMethod()
public String formNoValidate()
public String formTarget()
public String height()
public Number hspace()
public Boolean indeterminate()
public HTMLElement list()
public String max()
public Number maxLength()
public String min()
public Boolean multiple()
public String name()
public String pattern()
public String placeholder()
public Boolean readOnly()
public Boolean required()
public Number selectionEnd()
public Number selectionStart()
public Number size()
public String src()
public Boolean status()
public String step()
public String type()
public String useMap()
public String validationMessage()
public ValidityState validity()
public String value()
public Date valueAsDate()
public Number valueAsNumber()
public Number vspace()
public String width()
public Boolean willValidate()
public Boolean checkValidity()
public TextRange createTextRange()
public void select()
public void setCustomValidity(String error)
error
- Sets a custom error message that is displayed when a form is submitted.public void setSelectionRange(double start, double end)
start
- The offset into the text field for the start of the selection.end
- The offset into the text field for the end of the selection.public void stepDown(double n)
n
- Value to decrement the value by.public void stepDown()
n
- Value to decrement the value by.public void stepUp(double n)
n
- Value to increment the value by.public void stepUp()
n
- Value to increment the value by.Copyright © 2018. All rights reserved.