dioxus_lib::prelude

Trait HasAttributes

source
pub trait HasAttributes {
    // Required method
    fn push_attribute(
        self,
        name: &'static str,
        ns: Option<&'static str>,
        attr: impl IntoAttributeValue,
        volatile: bool,
    ) -> Self;
}
Expand description

A trait for anything that has a dynamic list of attributes

Required Methods§

source

fn push_attribute( self, name: &'static str, ns: Option<&'static str>, attr: impl IntoAttributeValue, volatile: bool, ) -> Self

Push an attribute onto the list of attributes

Object Safety§

This trait is not object safe.

Implementors§