[−][src]Crate dominator_helpers
Macros
elem | pass in a HtmlElement and get a Dom |
html_at_slot | 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_at_slot!("todo-input", "input", { ... } |
make_custom_event | TODO - relies on dominator exporting make_event! |
make_custom_event_serde | TODO - relies on dominator exporting make_event! first arg is name of the new struct to create second arg is literal name of the event third arg is the data structure. |
make_ts_event | TODO - relies on dominator exporting make_event! takes a literal and an ident and does the following: |
with_data_id | Method to get a child by data-id example: .with_data_id!("status", { .event(...) |
with_query | Method to get a child by query example: .with_query!("[data-id='status']", { .event(...) |
Structs
AsyncLoader | Makes it easier to run a future in the background with the ability to cancel and/or swap it
The status of the most-recent future can be gotten as a signal via |
Functions
spawn_future | Makes it easier to spawn a future into a cancellable signal |