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, message: 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, message: Message)
fn handle_message(&mut self, message: Message)
Handle a message