Re-exports
pub use wasm_bindgen;
Structs
A handle to both a closure in Rust as well as JS closure which will invoke
the Rust closure.
Convenience type for use on exported
fn() -> Result<T, JsError>
functions, where you wish to
throw a JavaScript Error
object.Representation of an object owned by JS.
Traits
A trait for checked and unchecked casting between JS types.
Elements that have attribute/property
value
are select
, input
,
option
, and textarea
. Apart from select
, other elements have
no issues with the value
property. Setting value
on a select
element expect the corresponding option
element inside the
select
element got highlighted as an selected item. But setting
the value property before adding the children (option
elements)
of the select will not work. This trait provide methods to work
with attribute value to help handle the issue. But this trait alone
can not sovle the issue. We also need HtmlElementUpdater and
HtmlNodesUpdater.An extension trait for
Option<T>
and Result<T, E>
for unwrapping the T
value, or throwing a JS error if it is not available.