pub enum AttrGroupValue {
Show 16 variants
AttrValue(AttrValue),
Css {
css: Css,
class_name: Option<String>,
},
HookKeyDown(Rc<Callback1<KeyDownEvent, bool>>),
OnBlur(Rc<Callback<()>>),
OnChange(Rc<Callback1<String, ()>>),
OnClick(Rc<Callback1<ClickEvent, ()>>),
OnDropfile(Rc<Callback1<DropFileEvent, ()>>),
OnInput(Rc<Callback1<String, ()>>),
OnKeyDown(Rc<Callback1<KeyDownEvent, bool>>),
OnLoad(Rc<Callback<()>>),
OnMouseDown(Rc<Callback<bool>>),
OnMouseEnter(Rc<Callback<()>>),
OnMouseLeave(Rc<Callback<()>>),
OnMouseUp(Rc<Callback<bool>>),
OnSubmit(Rc<Callback<()>>),
Suspense(Rc<fn(bool) -> Css>),
}Variants§
AttrValue(AttrValue)
Css
HookKeyDown(Rc<Callback1<KeyDownEvent, bool>>)
OnBlur(Rc<Callback<()>>)
OnChange(Rc<Callback1<String, ()>>)
OnClick(Rc<Callback1<ClickEvent, ()>>)
OnDropfile(Rc<Callback1<DropFileEvent, ()>>)
OnInput(Rc<Callback1<String, ()>>)
OnKeyDown(Rc<Callback1<KeyDownEvent, bool>>)
OnLoad(Rc<Callback<()>>)
OnMouseDown(Rc<Callback<bool>>)
OnMouseEnter(Rc<Callback<()>>)
OnMouseLeave(Rc<Callback<()>>)
OnMouseUp(Rc<Callback<bool>>)
OnSubmit(Rc<Callback<()>>)
Suspense(Rc<fn(bool) -> Css>)
Implementations§
Source§impl AttrGroupValue
impl AttrGroupValue
pub fn css(css: impl Into<Css>, class_name: Option<String>) -> Self
pub fn hook_key_down(callback: impl Into<Callback1<KeyDownEvent, bool>>) -> Self
pub fn on_blur(callback: impl Into<Callback<()>>) -> Self
pub fn on_change(callback: impl Into<Callback1<String, ()>>) -> Self
pub fn on_click(callback: impl Into<Callback1<ClickEvent, ()>>) -> Self
pub fn on_dropfile(callback: impl Into<Callback1<DropFileEvent, ()>>) -> Self
pub fn on_input(callback: impl Into<Callback1<String, ()>>) -> Self
pub fn on_key_down(callback: impl Into<Callback1<KeyDownEvent, bool>>) -> Self
pub fn on_load(callback: impl Into<Callback<()>>) -> Self
pub fn on_mouse_down(callback: impl Into<Callback<bool>>) -> Self
pub fn on_mouse_enter(callback: impl Into<Callback<()>>) -> Self
pub fn on_mouse_leave(callback: impl Into<Callback<()>>) -> Self
pub fn on_mouse_up(callback: impl Into<Callback<bool>>) -> Self
pub fn on_submit(callback: impl Into<Callback<()>>) -> Self
pub fn suspense(callback: fn(bool) -> Css) -> Self
Sourcepub fn to_string_or_empty(&self) -> Computed<String>
pub fn to_string_or_empty(&self) -> Computed<String>
Extract Computed<String> from this AttrGroupValue if possible.
Otherwise (for css and event handlers variants) this gives constant empty string.
For displaying in HTML it’s better to use .embed() method (which uses this one internally).
Trait Implementations§
Source§impl Clone for AttrGroupValue
impl Clone for AttrGroupValue
Source§fn clone(&self) -> AttrGroupValue
fn clone(&self) -> AttrGroupValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<&AttrGroupValue> for AttrGroupValue
impl From<&AttrGroupValue> for AttrGroupValue
Auto Trait Implementations§
impl Freeze for AttrGroupValue
impl !RefUnwindSafe for AttrGroupValue
impl !Send for AttrGroupValue
impl !Sync for AttrGroupValue
impl Unpin for AttrGroupValue
impl !UnwindSafe for AttrGroupValue
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