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

pub struct Props {
Show fields 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. Required

input_palette: Palette

The input style according with the purpose. Default Palette::Standard

input_size: Size

The size of the input. Default Size::Medium

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. Default false

underline: bool

Underline style instead of box, like Material. Default false

error_state: bool

Error state for validation. Default false

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. Default false

name: String

The name of the input

required: bool

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

readonly: bool

The value is not editable. Default false

disabled: bool

Whether the form control is disabled. Default false

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Builder that will be used to construct properties

Entrypoint for building properties

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an optional value of a Properties struct.

Convert self to a value of a Properties struct.

Convert self to a value of a Properties struct.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.