lighterhtml-plus

4.1.0 • Public • Published

lighterhtml-plus

Build Status WebReflection status License: ISC

This is exactly lighterhtml, plus:

  • onconnected callback, as in hyperHTML, to have Custom Elements like callbacks
  • ondisconnected callback, as in hyperHTML, to have counter events when nodes get disconnected
  • onattributechanged callback, as in wickedElements, to have attributes change notifications, Custom Elements like

Live test

V4 Breaking Changes

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>
`);

/lighterhtml-plus/

    Package Sidebar

    Install

    npm i lighterhtml-plus

    Weekly Downloads

    62

    Version

    4.1.0

    License

    ISC

    Unpacked Size

    103 kB

    Total Files

    13

    Last publish

    Collaborators

    • webreflection