pub trait DioxusWebComponent {
// Provided methods
fn set_attribute(&mut self, attribute: &str, value: Option<String>) { ... }
fn set_property(&mut self, property: &str, value: JsValue) { ... }
fn get_property(&mut self, property: &str) -> JsValue { ... }
fn handle_message(&mut self, msg: Message) { ... }
}
Expand description
Dioxus web component
Provided Methods§
sourcefn set_attribute(&mut self, attribute: &str, value: Option<String>)
fn set_attribute(&mut self, attribute: &str, value: Option<String>)
Set an HTML attribute
sourcefn set_property(&mut self, property: &str, value: JsValue)
fn set_property(&mut self, property: &str, value: JsValue)
Set a property
sourcefn get_property(&mut self, property: &str) -> JsValue
fn get_property(&mut self, property: &str) -> JsValue
Get a property
sourcefn handle_message(&mut self, msg: Message)
fn handle_message(&mut self, msg: Message)
Handle a message