Function ftml_setup

Source
pub fn ftml_setup(
    to: HtmlElement,
    children: TsTopCont,
    allow_hovers: Option<bool>,
    on_section_title: Option<JOnSectTtl>,
    on_fragment: Option<JFragCont>,
    on_inputref: Option<JInputRefCont>,
    on_problem: Option<JProblemCont>,
    problem_states: Option<ProblemStates>,
) -> FTMLMountHandle
Available on crate feature ts only.
Expand description

sets up a leptos context for rendering FTML documents or fragments. If a context already exists, does nothing, so is cheap to call render_document and render_fragment also inject a context iff none already exists, so this is optional in every case.