Struct glory_core::web::widgets::NodeMeta
source · pub struct NodeMeta {
pub classes: Classes,
pub attrs: BTreeMap<Cow<'static, str>, Box<dyn AttrValue>>,
pub props: BTreeMap<Cow<'static, str>, Box<dyn PropValue>>,
/* private fields */
}Fields§
§classes: Classes§attrs: BTreeMap<Cow<'static, str>, Box<dyn AttrValue>>§props: BTreeMap<Cow<'static, str>, Box<dyn PropValue>>Implementations§
source§impl NodeMeta
impl NodeMeta
pub fn id<V>(self, value: V) -> Selfwhere
V: AttrValue + 'static,
pub fn class<V>(self, value: V) -> Selfwhere
V: ClassPart + 'static,
pub fn toggle_class<V, C>(self, value: V, cond: C) -> Self
pub fn switch_class<TV, FV, C>(self, tv: TV, fv: FV, cond: C) -> Self
Trait Implementations§
source§impl Widget for NodeMeta
impl Widget for NodeMeta
fn build(&mut self, _ctx: &mut Scope)
fn attach(&mut self, ctx: &mut Scope)
fn store_in(self, parent: &mut Scope) -> ViewIdwhere
Self: Sized,
fn show_in(self, parent: &mut Scope) -> ViewIdwhere
Self: Sized,
fn mount_to(self, ctx: Scope, parent_node: &Node) -> ViewIdwhere
Self: Sized,
fn patch(&mut self, _ctx: &mut Scope)
fn detach(&mut self, ctx: &mut Scope)
fn detach_children(&mut self, ctx: &mut Scope)
Auto Trait Implementations§
impl !RefUnwindSafe for NodeMeta
impl !Send for NodeMeta
impl !Sync for NodeMeta
impl Unpin for NodeMeta
impl !UnwindSafe for NodeMeta
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