Class: PuerroElement

PuerroElement(initialState)

Abstract class which provides state to custom HTML elements.

Constructor

new PuerroElement(initialState)

Creates a new Puerro Element

Parameters:
Name Type Description
initialState Object

initial state

Source:

Methods

connectedCallback()

Connected Callback

Source:

refresh()

Refreshes the Dom

Source:

(abstract) render()

Render function

Source:

setState(newState)

Sets a new state based on a given object or function

Parameters:
Name Type Description
newState object | function
Source: