npm.io
0.0.1 • Published 7 years ago

@rhi-ui/base-element

Licence
Version
0.0.1
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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

Keywords