pub fn define_element(name: String, constructor: fn() -> Box<dyn Component>)
Expand description

Defines a new custom element

§Arguments

  • name - A name of a new custom element
  • constructor - Function/Closure which creates an instance of a custom element