# @rhi-ui/base-element

> Base class which has protected methods to initialize a list of properties and ui-bindings based on a list of ICustomElementProperty instances.

Latest version **0.0.1** (published 2019-04-06) · 0 weekly downloads

## Install

```sh
npm install @rhi-ui/base-element
pnpm add @rhi-ui/base-element
yarn add @rhi-ui/base-element
bun add @rhi-ui/base-element
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-04-06 |
| First published | 2019-04-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rhitech |
| Keywords | base, element |

## Links

- npm: https://www.npmjs.com/package/@rhi-ui/base-element
- npm.io page: https://npm.io/package/@rhi-ui/base-element

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-04-06

## 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

```JavaScript
class MyClass extends RhiUiBaseElement { }
```

### Methods

```TypeScript
protected requestRender(template: string): void
```

```TypeScript
JavaScript protected initializeDeclaredProperties(properties: { [index: string]: ICustomElementProperty }): void
```

```TypeScript
protected updateUiBindings(properties: { [index: string]: ICustomElementProperty }): void
```

---
_Source: https://npm.io/package/@rhi-ui/base-element · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
