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
Auto Trait Implementations
impl !RefUnwindSafe for FileProps
impl !UnwindSafe for FileProps
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.
If self
and new
aren’t equal, assigns new
to self
and returns true, otherwise returns false. Read more
impl<T> Any for T where
T: Any,