struct
App
pub struct App {
/* private fields */
}A mounted application.
Methods
mount
pub fn mount(root: Component, registry: Registry, host: impl Host + 'static) -> Result<App, RenderError>Mount root, render it into host, and keep it in sync with state.
dispatch
pub fn dispatch(&self, path: &[usize], event: &Event) -> boolInvoke the handlers for event.kind on the node at path. As in a browser, a click on a form's submit button (a button whose type is submit or unset, and isn't disabled) then submits the form.
accessibility_tree
pub fn accessibility_tree(&self) -> AccessNodeThe accessibility tree of what's rendered now: roles, names and states, as assistive technology sees them.
activate
pub fn activate(&self, role: Role, name: &str) -> boolClick the node with the given role and accessible name — how assistive technology (and tests) activate controls.
stylesheet
pub fn stylesheet(&self, theme: &Theme) -> StringTailwind CSS (with preflight) for everything currently rendered.
stylesheet_with
pub fn stylesheet_with(&self, extra: &str, theme: &Theme) -> String[App::stylesheet] that also styles extra classes used outside the app (on <body>).