[][src]Struct yew_styles::forms::form_file::Props

pub struct Props {
    pub accept: Vec<String>,
    pub input_palette: Palette,
    pub input_size: Size,
    pub onchange_signal: Callback<ChangeData>,
    pub capture: String,
    pub multiple: bool,
    pub hidden: bool,
    pub underline: bool,
    pub error_state: bool,
    pub error_message: String,
    pub alt: String,
    pub autofocus: bool,
    pub name: String,
    pub required: bool,
    pub readonly: bool,
    pub disabled: bool,
    pub code_ref: NodeRef,
    pub key: String,
    pub class_name: String,
    pub id: String,
}

Fields

accept: Vec<String>

One or more unique file type specifiers describing file types to allow

input_palette: Palette

The input style according with the purpose

input_size: Size

The size of the input

onchange_signal: Callback<ChangeData>

Signal to emit the event change

capture: String

Media capture input method in file upload controls

multiple: bool

Whether to allow multiple values

hidden: bool

Hide the file input element

underline: bool

Underline style instead of box, like Material

error_state: bool

Error state for validation

error_message: String

Show error message when error_state is true

alt: String

Alt attribute for the image type

autofocus: bool

Automatically focus the form control when the page is loaded

name: String

The name of the input

required: bool

A value is required or must be check for the form to be submittable

readonly: bool

The value is not editable

disabled: bool

Whether the form control is disabled

code_ref: NodeRef

General property to get the ref of the component

key: String

General property to add keys

class_name: String

General property to add custom class styles

id: String

General property to add custom id

Trait Implementations

impl Clone for Props[src]

impl Properties for Props[src]

type Builder = PropsBuilder<PropsBuilderStep_missing_required_prop_accept>

Builder that will be used to construct properties

Auto Trait Implementations

impl !RefUnwindSafe for Props

impl !Send for Props

impl !Sync for Props

impl Unpin for Props

impl !UnwindSafe for Props

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,