pub struct EuvUploadProps {
pub accept: &'static str,
pub multiple: Signal<bool>,
pub files: Signal<Vec<EuvUploadFile>>,
pub drag_active: Signal<bool>,
pub on_files: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_upload component.
The file list and the drag state are caller-owned signals so the caller can feed real upload progress back in; the component only presents them.
Fields§
§accept: &'static strThe accept filter applied to the underlying file input.
multiple: Signal<bool>Whether the file input allows selecting more than one file.
files: Signal<Vec<EuvUploadFile>>The rows rendered in the file list.
drag_active: Signal<bool>Whether a drag is currently over the drop zone.
on_files: Option<Rc<dyn Fn(&'static str)>>Optional callback receiving a display string for the picked files.
Trait Implementations§
Source§impl Clone for EuvUploadProps
impl Clone for EuvUploadProps
Source§impl Debug for EuvUploadProps
impl Debug for EuvUploadProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvUploadProps
impl !Send for EuvUploadProps
impl !Sync for EuvUploadProps
impl !UnwindSafe for EuvUploadProps
impl Freeze for EuvUploadProps
impl Unpin for EuvUploadProps
impl UnsafeUnpin for EuvUploadProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more