lighterhtml-plus
v4.1.0
Published
lighterhtml plus `onconnected`, `ondisconnected`, and `onattributechanged` events
Downloads
47
Maintainers
Readme
lighterhtml-plus
This is exactly lighterhtml, plus:
onconnected
callback, as in hyperHTML, to have Custom Elements like callbacksondisconnected
callback, as in hyperHTML, to have counter events when nodes get disconnectedonattributechanged
callback, as in wickedElements, to have attributes change notifications, Custom Elements like
import {render, html} from 'lighterhtml-plus';
render(document.body, html`
<div
onconnected=${event => console.log('connected')}
ondisconnected=${event => console.log('disconnected')}
onattributechanged=${({
attributeName,
oldValue,
newValue
}) => console.log('changed')}
>
lighterhtml-plus 🎉
</div>
`);