Hawkejs.Element. Element
The Element class serves as an abstract class you can use to create your own custom HTML elements.
It can also be used on the server-side, where it will inherit from a polyfilled HTMLElement class.
Properties & methods
- Element.setAttribute( )
- Add an attribute getter/setter
- Element.setTemplateFile( )
- Set the template file used to render the inner HTML
- Element#connected( )
- Method that is called when the element has been (re-)inserted into the DOM
- Element#createElement( )
- Create a new element instance
- Element#disconnected( )
- Method that is called when the element has been removed from the DOM
- Element#introduced( )
- Method that is called when the element is added to the DOM for the first time
- Element#reconnected( )
- Method that is called when the element has been re-inserted into the DOM (after an initial connect)