#[repr(C)]pub struct FileInput {
pub file_input_state: FileInputStateWrapper,
pub default_text: AzString,
pub image: OptionImageRef,
pub container_style: CssPropertyWithConditionsVec,
pub label_style: CssPropertyWithConditionsVec,
pub image_style: CssPropertyWithConditionsVec,
}Fields§
§file_input_state: FileInputStateWrapperState of the file input
default_text: AzStringDefault text to display when no file has been selected (default = “Select File…”)
image: OptionImageRefOptional image that is displayed next to the label
container_style: CssPropertyWithConditionsVecStyle for this button container
label_style: CssPropertyWithConditionsVecStyle of the label
image_style: CssPropertyWithConditionsVecStyle of the image
Implementations§
Source§impl FileInput
impl FileInput
pub fn create(path: OptionString) -> Self
pub fn swap_with_default(&mut self) -> Self
pub fn set_default_text(&mut self, default_text: AzString)
pub fn with_default_text(self, default_text: AzString) -> Self
pub fn set_on_path_change<I: Into<FileInputOnPathChangeCallback>>( &mut self, refany: RefAny, callback: I, )
pub fn with_on_path_change<I: Into<FileInputOnPathChangeCallback>>( self, refany: RefAny, callback: I, ) -> Self
pub fn dom(self) -> Dom
Trait Implementations§
impl StructuralPartialEq for FileInput
Auto Trait Implementations§
impl Freeze for FileInput
impl RefUnwindSafe for FileInput
impl Send for FileInput
impl Sync for FileInput
impl Unpin for FileInput
impl UnwindSafe for FileInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more