Crate dominator_helpers[−][src]
Modules
Macros
Placeholder for https://github.com/Pauan/rust-dominator/issues/44
pass in a HtmlElement and get a Dom
Create an element type at a slot (useful for web components) e.g. this will create the “todo-input” element with its “slot” attribute set to “input” html_slot!(“todo-input”, “input”, { … }
first arg is name of the new struct to create second arg is literal name of the event third arg is the data structure.
takes a literal and an ident and does the following:
TODO - use dominator::make_event instead! (it’s not exported yet)
Method to get a child by data-id example: .with_data_id!(“status”, { .event(…)
Method to get a child by query example: .with_query!(“[data-id=‘status’]”, { .event(…)