@rhi-ui/base-element
v0.0.1
Published
Base class which has protected methods to initialize a list of properties and ui-bindings based on a list of ICustomElementProperty instances.
Downloads
4
Readme
RhiUiBaseElement
Base class, which extends HTMLElement
, with protected methods to initialize a list of properties and ui-bindings
based on a list of ICustomElementProperty
instances.
Based on the list, the component will select the HTMElements, whose bind-to
attribute match a property name.
This is to help reduce the selections applied to the DOM.
Install
npm install --save @rhi-ui/base-element
Basic usage
class MyClass extends RhiUiBaseElement { }
Methods
protected requestRender(template: string): void
JavaScript protected initializeDeclaredProperties(properties: { [index: string]: ICustomElementProperty }): void
protected updateUiBindings(properties: { [index: string]: ICustomElementProperty }): void