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
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
Auto Trait Implementations
impl !RefUnwindSafe for Props
impl !UnwindSafe for Props
Blanket Implementations
Mutably borrows from an owned value. Read more
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.
pub fn vzip(self) -> V
impl<T> Any for T where
T: Any,