macro_rules! query {
($obj:expr, $selectors:expr) => { ... };
($selectors:expr) => { ... };
}
Expand description
query!
macro to find elements.
This macro is a helper for the find
method.
ยงExamples
use wasm_bindgen::prelude::*;
use web_sys_query::{query, Error};
#[wasm_bindgen]
pub fn hello() {
query!("body").unwrap().set_text("Hello, World!");
}