glom 0.1.0

Development toolkit for rust wasm
Documentation
  • Coverage
  • 0%
    0 out of 12 items documented0 out of 10 items with examples
  • Size
  • Source code size: 17.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.56 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 7s Average build duration of successful builds.
  • all releases: 1m 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zinso

Development toolkit for rust wasm

Crates.io Rust license

The commonly used DOM operations in WASM front-end development are written as functions

#prepend tag to the start of body
prepend_to_body(tagname:&str,options:&str,inner_html:&str)

#append tag to at the end of body
append_to_body(tagname:&str,options:&str,inner_html:&str)

#prepend tag to the start of head
prepend_to_head(tagname:&str,options:&str,inner_html:&str)

#append tag to at the end of head
append_to_head(tagname:&str,options:&str,inner_html:&str)

#append html to at the end of body
append_html_to_body(inner_html:&str)

#append html to at the end of head
append_html_to_head(inner_html:&str)

#append html to at the end of body
append_html_by_class_name(class_name:&str,inner_html:&str)

#remove element by class name
remove_element_by_class_name(class_name:&str)

# async get request
get_request(url:&str)->Result<String, reqwasm::Error>

# blocking get request
blocking_get_request(url:&str)->Result<String, reqwasm::Error>