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

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]

pub fn raw_value(&self) -> String[src]

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

pub fn set_raw_value(&self, value: &str)[src]

Sets the value of the control.

pub fn selection_start(&self) -> Option<u32>[src]

The offset to the start of the selection. This attribute only applies when the input is a text, search, url, telephone or password.

pub fn set_selection_start(&self, value: u32) -> Result<(), InvalidStateError>[src]

Sets the offset to the start of the selection. This attribute only applies when the input is a text, search, url, telephone or password.

pub fn selection_end(&self) -> Option<u32>[src]

The offset to the end of the selection. This attribute only applies when the input is a text, search, url, telephone or password.

pub fn set_selection_end(&self, value: u32) -> Result<(), InvalidStateError>[src]

Sets the offset to the end of the selection. This attribute only applies when the input is a text, search, url, telephone or password.

Trait Implementations

impl JsSerialize for InputElement[src]

impl TryFrom<EventTarget> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Node> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Element> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<HtmlElement> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<InputElement> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for InputElement[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for InputElement[src]

impl ReferenceType for InputElement[src]

impl IEventTarget for InputElement[src]

impl INode for InputElement[src]

impl IElement for InputElement[src]

impl IHtmlElement for InputElement[src]

impl AsRef<Reference> for InputElement[src]

impl From<InputElement> for EventTarget[src]

impl From<InputElement> for Node[src]

impl From<InputElement> for Element[src]

impl From<InputElement> for HtmlElement[src]

impl From<InputElement> for Reference[src]

impl Clone for InputElement[src]

impl Eq for InputElement[src]

impl PartialEq<InputElement> for InputElement[src]

impl Debug for InputElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]