Struct moxie_dom::elements::forms::FormBuilder [−][src]
pub struct FormBuilder { /* fields omitted */ }
Expand description
The HTML <form>
element represents a document section that contains interactive
controls for submitting information to a web server.
A type for initializing the element’s attributes before calling build
.
Implementations
Space-separated character encodings the server accepts. The browser uses them in the order in which they are listed. The default value means the same encoding as the page.
The URI of a program that processes the information submitted via the form.
Indicates whether input elements can by default have their values automatically
completed by the browser. autocomplete attributes on form elements override it on
<form>
. Possible values:
- off: The browser may not automatically complete entries. (Browsers tend to ignore this for suspected login forms; see The autocomplete attribute and login fields.)
- on: The browser may automatically complete entries.
If the value of the method attribute is post, enctype is the MIME type of the form submission. Possible values:
- application/x-www-form-urlencoded: The default value.
- multipart/form-data: Use this if the form contains
<input>
elements with type=file. - text/plain: Introduced by HTML5 for debugging purposes.
This value can be overridden by formenctype attributes on <button>
,
<input type="submit">
, or <input type="image">
elements.
The HTTP method to submit the form with. Possible values:
- post: The POST method; form data sent as the request body.
- get: The GET method; form data appended to the action URL with a ? separator. Use this method when the form has no side-effects.
- dialog: When the form is inside a
<dialog>
, closes the dialog on submission.
This value is overridden by formmethod attributes on <button>
,
<input type="submit">
, or <input type="image">
elements.
Indicates that the form shouldn’t be validated when submitted. If this attribute is not
set (and therefore the form is validated), it can be overridden by a formnovalidate
attribute on a <button>
, <input type="submit">
, or <input type="image">
element
belonging to the form.
Creates a hyperlink or annotation depending on the value.
Indicates where to display the response after submitting the form. It is a name/keyword for a browsing context (for example, tab, window, or iframe). The following keywords have special meanings:
- _self (default): Load into the same browsing context as the current one.
- _blank: Load into a new unnamed browsing context.
- _parent: Load into the parent browsing context of the current one. If no parent, behaves the same as _self.
- _top: Load into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one and has no parent). If no parent, behaves the same as _self.
This value can be overridden by a formtarget attribute on a <button>
,
<input type="submit">
, or <input type="image">
element.
Trait Implementations
Declare an attribute of the element, mutating the actual element’s attribute when the passed value changes. Read more
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Set an event handler.
Keyboard shortcut to activate or add focus to the element.
Sets whether input is automatically capitalized when entered by user. It can have the following values: Read more
A value of “true” means the element is editable and a value of “false” means it isn’t.
The directionality of the element. It can have the following values: Read more
Indicates if the element is hidden or not.
Indicates whether the user agent must act as though the given node is absent for the purposes of user interaction events, in-page text searches (“find in page”), and text selection. Read more
Provides a hint as to the type of data that might be entered by the user while editing the element or its contents. The attribute can be used with form controls (such as the value of textarea elements), or in elements in an editing host (e.g., using contenteditable attribute). Read more
The language of an element’s attributes, text, and element contents.
Assigns a slot in a shadow DOM shadow tree to an element.
Indicates whether spell checking is allowed for the element.
Overrides the browser’s default tab order and follows the one specified instead. Read more
Retrieves access to the raw HTML element underlying the (CachedNode). Read more
Add a child to this node.
Auto Trait Implementations
impl !RefUnwindSafe for FormBuilder
impl !Send for FormBuilder
impl !Sync for FormBuilder
impl Unpin for FormBuilder
impl !UnwindSafe for FormBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more