registerWebComponent
registers a WebComponent at the browser's registry, so you can use it in fritz2 by custom-HtmlTag or in HTML. So to make a component that can be added by just importing your javascript, call this in main.
Parameters
name of the new custom tag (must contain a '-')
instance of a WebComponent
attributes to be observed, changes will occur on WebComponent.attributeChanges
registers a WebComponent at the browser's registry, so you can use it in fritz2 by custom-HtmlTag or in HTML. So to make a component that can be added by just importing your javascript, call this in main.
Parameters
name of the new custom tag (must contain a '-')
class describing the component to register implementing WebComponent
attributes to be observed, changes will occur on WebComponent.attributeChanges