DioxusWebComponent

Trait DioxusWebComponent 

Source
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§

Source

fn set_attribute(&mut self, attribute: &str, value: Option<String>)

Set an HTML attribute

Source

fn set_property(&mut self, property: &str, value: JsValue)

Set a property

Source

fn get_property(&mut self, property: &str) -> JsValue

Get a property

Source

fn handle_message(&mut self, message: Message)

Handle a message

Implementors§