[][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>,


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

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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>, 

impl<T, U> NeqAssign<U> for T where
    T: BorrowMut<U>,
    U: PartialEq<U>, 

impl<T, U> NeqAssignBy<U> for T where
    T: BorrowMut<U>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.