UNPKG

relift-html

Version:

A blazing fast view library that lets you put Javascript Template Literals in HTML

11 lines (5 loc) 611 B
*All methods have access to the following instance's properties: **`this.el`**: Is the instance root element. It allows you to safely query, manipulate the instance's DOM elements. ie: `this.el.querySelector('ul')` **`this.data`**: Gives you access to the reactive data. You can get, set and delete properties. Whenever a data is updated it will trigger re-render (if necessary), ie: `console.log(this.data.name)` **`this.prop`**: Give you access to the properties that were set as attributes in the custom element. **`...this.defined-methods`** all of the defined methods, ie: `this.my-defined-method()`