pub fn modal<F>(
id: &str,
size: ModalSize,
title: &str,
body_fn: F,
) -> Element<Div>Expand description
Create a basic modal structure.
ยงExample
use ironhtml_bootstrap::modal::{modal, ModalSize};
let m = modal("myModal", ModalSize::Default, "Modal Title", |body| {
body.text("Modal content goes here.")
});
assert!(m.render().contains("modal"));