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)>>,
pub id: &'static str,
pub label: &'static str,
pub disabled: Signal<bool>,
pub input_type: &'static str,
pub aria_label: &'static str,
pub picker_label: &'static str,
pub onchange: Option<Rc<dyn Fn(Event)>>,
}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.
id: &'static strThe native input identifier for external picker controls.
label: &'static strThe localized picker label, or the default prompt when empty.
disabled: Signal<bool>Whether file selection is disabled.
input_type: &'static strNative input type (normally file).
aria_label: &'static strAccessible name for a visually hidden picker.
picker_label: &'static strText of an associated visible picker label.
onchange: Option<Rc<dyn Fn(Event)>>Native change event handler.
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 Forget for EuvUploadProps
impl Freeze for EuvUploadProps
impl Move 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