Skip to main content

view_dialog

Function view_dialog 

Source
pub fn view_dialog<HostMsg, F>(
    state: &FifState,
    palette: &FifPalette,
    to_host: F,
) -> View<HostMsg>
where HostMsg: Clone + 'static, F: Fn(FifMsg) -> HostMsg + Copy + 'static,
Expand description

Popup modal compacto: header + input. Sin lista de resultados — esa vive en view_results_bar. El host lo pinta como overlay centrado.

El View devuelto tiene tamaño fijo ([DIALOG_W] × [DIALOG_H]). Si el host quiere centrarlo, debe envolverlo en un container con JustifyContent::Center/AlignItems::Center o usar el slot de overlay.