[][src]Struct ybc::FileProps

pub struct FileProps {
    pub name: String,
    pub files: Vec<SysFile>,
    pub update: Callback<Vec<SysFile>>,
    pub selector_label: String,
    pub selector_icon: Html,
    pub classes: Option<String>,
    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<String>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

impl Clone for FileProps[src]

impl Debug for FileProps[src]

impl PartialEq<FileProps> for FileProps[src]

impl Properties for FileProps[src]

type Builder = FilePropsBuilder<FilePropsBuilderStep_missing_required_prop_files>

Builder that will be used to construct properties

impl StructuralPartialEq for FileProps[src]

Auto Trait Implementations

impl !RefUnwindSafe for FileProps

impl !Send for FileProps

impl !Sync for FileProps

impl Unpin for FileProps

impl !UnwindSafe for FileProps

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, U> NeqAssign<U> for T where
    T: BorrowMut<U>,
    U: PartialEq<U>, 
[src]

impl<T, U> NeqAssignBy<U> for T where
    T: BorrowMut<U>, 
[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.