Struct ybc::FileProps[][src]

pub struct FileProps {
Show 13 fields pub name: String, pub files: Vec<SysFile>, pub update: Callback<Vec<SysFile>>, pub selector_label: String, pub selector_icon: Html, pub classes: Option<Classes>, pub has_name: Option<String>, pub right: bool, pub fullwidth: bool, pub boxed: bool, pub multiple: bool, pub size: Option<Size>, pub alignment: Option<Alignment>,
}

Fields

name: String

The name attribute for this form element.

files: Vec<SysFile>

The controlled form value for the currently selected files.

update: Callback<Vec<SysFile>>

The callback to be used for propagating changes to this form element.

selector_label: String

The display text for the file selector.

selector_icon: Html

The HTML contents to use for the file selector icon.

classes: Option<Classes>has_name: Option<String>

An option to control if file names will be displayed; if a value is provided, then the has-name class will be added to this form element and the given value will be used as a placeholder until files are selected.

right: bool

Move the CTA element to the right side of the component.

fullwidth: bool

Expand the file display name to the full width of the parent.

boxed: bool

Display as a boxed block.

multiple: bool

Allow multiple files to be selected.

size: Option<Size>

The size of this component.

alignment: Option<Alignment>

The alignment of this component within its parent.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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.

If self and new aren’t equal, assigns new to self and returns true, otherwise returns false. Read more

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.