Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

1.2.0

Compare
Choose a tag to compare
@bersLucas bersLucas released this 14 Mar 00:23
· 32 commits to master since this release
  • Properties inside lil-bind will be created if they don't exist (Defaults to a text bindType and value of '')
  • Creates a liljs.addProp() function too add properties after application is renderd
let app = liljs(
  document.querySelector('#app'), {
    textValue: 'hello world',
  }
);
app.addProp('name', 'text/style/list/click', [element(s)], value);
  • Elements with lil-text properties will no longer replace the entirety of their contents when they're rendered. Instead, all text nodes will be removed and the lil-text value will be apended.
  • lil-* properties inside <template> elements will now be initialized.
  • lil-style properties now take functions as a css value. The result of getPropsFromElem(elem) is passed as a parameter
  • lil-style will ignore undefined values without throwing an error
  • Add lil-index and lil-list-parent attributes to elements with lil-list-text to help identify their parents
  • Add lil-click property type