lldap/app/src/infra/modal.rs
Valentin Tolmer 402ef2f83a app: Add a component to delete a user
Also adds a way to hook to the bootstrap modals to show or hide them.
2021-09-24 16:46:30 +02:00

17 lines
324 B
Rust

use wasm_bindgen::prelude::*;
#[wasm_bindgen(module = "bootstrap")]
extern "C" {
#[wasm_bindgen]
pub type Modal;
#[wasm_bindgen(constructor)]
pub fn new(e: web_sys::Element) -> Modal;
#[wasm_bindgen(method)]
pub fn show(this: &Modal);
#[wasm_bindgen(method)]
pub fn hide(this: &Modal);
}