Struct stdweb::web::html_element::InputElement [] [src]

pub struct InputElement(_);

The HTML input element is used to create interactive controls for web-based forms in order to accept data from the user.

(JavaScript docs)

Methods

impl InputElement
[src]

The value of the control. This attribute is optional except when the input is a radio button or a checkbox.

Sets the value of the control.

The type of control to render. See Form types for the individual types, with links to more information about each.

Trait Implementations

impl IEventTarget for InputElement
[src]

Adds given event handler to the list the list of event listeners for the specified EventTarget on which it's called. Read more

impl INode for InputElement
[src]

Adds a node to the end of the list of children of a specified parent node. Read more

Removes a child node from the DOM. Read more

Returns a duplicate of the node on which this method was called. Read more

Checks whenever a given node is a descendant of this one or not. Read more

Inserts the specified node before the reference node as a child of the current node. Read more

Replaces one hild node of the specified node with another. Read more

Returns the parent of this node in the DOM tree. Read more

Returns the node's first child in the tree, or None if the node is childless. Read more

A property which represents the "rendered" text content of a node and its descendants. It approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied to the clipboard. Read more

A property which represents the text content of a node and its descendants. Read more

Sets the text content of this node; calling thil removes all of node's children and replaces them with a single text node with the given value. Read more

Returns a live collection of child nodes of this node. Read more

impl IElement for InputElement
[src]

The Element.classList is a read-only property which returns a live TokenList collection of the class attributes of the element. Read more

Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors. Read more

Returns a non-live NodeList of all elements descended from the element on which it is invoked that matches the specified group of CSS selectors. Read more

impl IHtmlElement for InputElement
[src]

Sets focus on the specified element, if it can be focused. Read more

Removes keyboard focus from the current element. Read more

Allows access, both in reading and writing, to all of the custom data attributes (data-*) set on the element, either in HTML or in the DOM. Read more

impl Debug for InputElement
[src]

Formats the value using the given formatter.

impl Clone for InputElement
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<Reference> for InputElement
[src]

Performs the conversion.

impl<T: TryInto<Reference>> TryFrom<T> for InputElement where
    T::Error: Into<Box<Error>>, 
[src]

The type returned in the event of a conversion error.

Performs the conversion.