pub struct input {Show 58 fields
pub accept: DomStrAttr,
pub alt: DomStrAttr,
pub autocomplete: DomStrAttr,
pub checked: DomBindingBoolAttr,
pub disabled: DomBoolAttr,
pub form_action: DomStrAttr,
pub form_enctype: DomStrAttr,
pub form_method: DomStrAttr,
pub form_no_validate: DomBoolAttr,
pub form_target: DomStrAttr,
pub height: DomU32Attr,
pub max: DomStrAttr,
pub max_length: DomI32Attr,
pub min: DomStrAttr,
pub min_length: DomI32Attr,
pub multiple: DomBoolAttr,
pub name: DomStrAttr,
pub pattern: DomStrAttr,
pub placeholder: DomStrAttr,
pub read_only: DomBoolAttr,
pub required: DomBoolAttr,
pub size: DomU32Attr,
pub src: DomStrAttr,
pub step: DomStrAttr,
pub type: DomStrAttr,
pub spellcheck: DomBoolAttr,
pub value: DomBindingStrAttr,
pub width: DomU32Attr,
pub change: DomEvent<Change>,
pub input: DomEvent<Input>,
pub id: DomStrAttr,
pub title: DomStrAttr,
pub hidden: DomBoolAttr,
pub touch_start: DomEvent<TouchStart>,
pub touch_move: DomEvent<TouchMove>,
pub touch_end: DomEvent<TouchEnd>,
pub touch_cancel: DomEvent<TouchCancel>,
pub mouse_down: DomEvent<MouseDown>,
pub mouse_up: DomEvent<MouseUp>,
pub mouse_move: DomEvent<MouseMove>,
pub mouse_enter: DomEvent<MouseEnter>,
pub mouse_leave: DomEvent<MouseLeave>,
pub click: DomEvent<Click>,
pub tap: DomEvent<Tap>,
pub long_tap: DomEvent<LongTap>,
pub cancel_tap: DomEvent<CancelTap>,
pub scroll: DomEvent<Scroll>,
pub animation_start: DomEvent<AnimationStart>,
pub animation_iteration: DomEvent<AnimationIteration>,
pub animation_end: DomEvent<AnimationEnd>,
pub animation_cancel: DomEvent<AnimationCancel>,
pub transition_run: DomEvent<TransitionRun>,
pub transition_start: DomEvent<TransitionStart>,
pub transition_end: DomEvent<TransitionEnd>,
pub transition_cancel: DomEvent<TransitionCancel>,
pub class: DomClassList,
pub style: DomStyleList,
pub attr: DomCustomAttrs,
/* private fields */
}Expand description
The HTML <input> element.
Fields§
§accept: DomStrAttrThe accept attribute.
alt: DomStrAttrThe alt attribute.
autocomplete: DomStrAttrThe autocomplete attribute.
checked: DomBindingBoolAttrThe checked attribute.
disabled: DomBoolAttrThe disabled attribute.
form_action: DomStrAttrThe form_action attribute.
form_enctype: DomStrAttrThe form_enctype attribute.
form_method: DomStrAttrThe form_method attribute.
form_no_validate: DomBoolAttrThe form_no_validate attribute.
form_target: DomStrAttrThe form_target attribute.
height: DomU32AttrThe height attribute.
max: DomStrAttrThe max attribute.
max_length: DomI32AttrThe max_length attribute.
min: DomStrAttrThe min attribute.
min_length: DomI32AttrThe min_length attribute.
multiple: DomBoolAttrThe multiple attribute.
name: DomStrAttrThe name attribute.
pattern: DomStrAttrThe pattern attribute.
placeholder: DomStrAttrThe placeholder attribute.
read_only: DomBoolAttrThe read_only attribute.
required: DomBoolAttrThe required attribute.
size: DomU32AttrThe size attribute.
src: DomStrAttrThe src attribute.
step: DomStrAttrThe step attribute.
type: DomStrAttrThe type attribute.
spellcheck: DomBoolAttrThe spellcheck attribute.
value: DomBindingStrAttrThe value attribute.
width: DomU32AttrThe width attribute.
change: DomEvent<Change>The change event.
input: DomEvent<Input>The input event.
id: DomStrAttrThe id attribute.
title: DomStrAttrThe title attribute.
The hidden attribute.
touch_start: DomEvent<TouchStart>The touchstart event.
touch_move: DomEvent<TouchMove>The touchmove event.
touch_end: DomEvent<TouchEnd>The touchend event.
touch_cancel: DomEvent<TouchCancel>The touchcancel event.
mouse_down: DomEvent<MouseDown>The mousedown event.
mouse_up: DomEvent<MouseUp>The mouseup event.
mouse_move: DomEvent<MouseMove>The mousemove event.
mouse_enter: DomEvent<MouseEnter>The mouseenter event.
mouse_leave: DomEvent<MouseLeave>The mouseleave event.
click: DomEvent<Click>The click event.
tap: DomEvent<Tap>The tap event.
long_tap: DomEvent<LongTap>The longtap event.
cancel_tap: DomEvent<CancelTap>The canceltap event.
scroll: DomEvent<Scroll>The scroll event.
animation_start: DomEvent<AnimationStart>The animationstart event.
animation_iteration: DomEvent<AnimationIteration>The animationiteration event.
animation_end: DomEvent<AnimationEnd>The animationend event.
animation_cancel: DomEvent<AnimationCancel>The animationcancel event.
transition_run: DomEvent<TransitionRun>The transitionrun event.
transition_start: DomEvent<TransitionStart>The transitionstart event.
transition_end: DomEvent<TransitionEnd>The transitionend event.
transition_cancel: DomEvent<TransitionCancel>The transitioncancel event.
class: DomClassListThe class of the element.
style: DomStyleListThe style of the element.
attr: DomCustomAttrsThe custom attributes of the element.
Trait Implementations§
Source§impl AsElementTag for input
impl AsElementTag for input
Source§type SlotChildren = StaticSingleSlot<ForestTokenAddr, Box<[DynNode]>>
type SlotChildren = StaticSingleSlot<ForestTokenAddr, Box<[DynNode]>>
Source§impl BackendComponent<DomBackend> for input
impl BackendComponent<DomBackend> for input
Source§type UpdateTarget = input
type UpdateTarget = input
Source§type UpdateContext = DomElement
type UpdateContext = DomElement
Source§fn init<'b>(
_backend_context: &'b BackendContext<DomBackend>,
owner: &'b mut ForestNodeMut<'_, DomGeneralElement>,
_owner_weak: &'b Box<dyn OwnerWeak>,
) -> Result<(Self, ForestNodeRc<DomGeneralElement>), Error>where
Self: Sized,
fn init<'b>(
_backend_context: &'b BackendContext<DomBackend>,
owner: &'b mut ForestNodeMut<'_, DomGeneralElement>,
_owner_weak: &'b Box<dyn OwnerWeak>,
) -> Result<(Self, ForestNodeRc<DomGeneralElement>), Error>where
Self: Sized,
Source§fn create<'b>(
&'b mut self,
_backend_context: &'b BackendContext<DomBackend>,
owner: &'b mut ForestNodeMut<'_, DomGeneralElement>,
update_fn: Box<dyn FnOnce(&mut Self, &mut Self::UpdateContext) + 'b>,
slot_fn: &mut dyn FnMut(&mut ForestNodeMut<'_, DomGeneralElement>, &ForestToken, &Self::SlotData) -> Result<(), Error>,
) -> Result<(), Error>
fn create<'b>( &'b mut self, _backend_context: &'b BackendContext<DomBackend>, owner: &'b mut ForestNodeMut<'_, DomGeneralElement>, update_fn: Box<dyn FnOnce(&mut Self, &mut Self::UpdateContext) + 'b>, slot_fn: &mut dyn FnMut(&mut ForestNodeMut<'_, DomGeneralElement>, &ForestToken, &Self::SlotData) -> Result<(), Error>, ) -> Result<(), Error>
Source§fn apply_updates<'b>(
&'b mut self,
_backend_context: &'b BackendContext<DomBackend>,
owner: &'b mut ForestNodeMut<'_, <DomBackend as Backend>::GeneralElement>,
update_fn: Box<dyn FnOnce(&mut Self, &mut Self::UpdateContext) + 'b>,
slot_fn: &mut dyn FnMut(SlotChange<&mut ForestNodeMut<'_, DomGeneralElement>, &ForestToken, &Self::SlotData>) -> Result<(), Error>,
) -> Result<(), Error>
fn apply_updates<'b>( &'b mut self, _backend_context: &'b BackendContext<DomBackend>, owner: &'b mut ForestNodeMut<'_, <DomBackend as Backend>::GeneralElement>, update_fn: Box<dyn FnOnce(&mut Self, &mut Self::UpdateContext) + 'b>, slot_fn: &mut dyn FnMut(SlotChange<&mut ForestNodeMut<'_, DomGeneralElement>, &ForestToken, &Self::SlotData>) -> Result<(), Error>, ) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for input
impl !RefUnwindSafe for input
impl !Send for input
impl !Sync for input
impl Unpin for input
impl !UnwindSafe for input
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> DomElementExt for Twhere
T: DomElementBase,
impl<T> DomElementExt for Twhere
T: DomElementBase,
Source§fn dom_element(&self) -> &Element
fn dom_element(&self) -> &Element
Source§impl<S, T> PropAsRef<S> for T
impl<S, T> PropAsRef<S> for T
Source§fn property_as_ref(&self) -> &S
fn property_as_ref(&self) -> &S
&Self as &S .Source§fn property_to_owned(s: &S) -> T
fn property_to_owned(s: &S) -> T
&S as a new Self .