@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
19
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): voidJavaScript protected initializeDeclaredProperties(properties: { [index: string]: ICustomElementProperty }): voidprotected updateUiBindings(properties: { [index: string]: ICustomElementProperty }): void