This repository has been archived by the owner on Jul 29, 2019. It is now read-only.
Releases: bersLucas/liljs
Releases · bersLucas/liljs
4.0.1
4.0.0
3.0.0
2.1.0
- Adds a second parameter to initialization for methods called with
lil-click
events.
Current syntax is now:
liljs(document.querySelector('#app'), {
propertyName: propertyValue,
propertyName: propertyValue,
...
}, {
methodName: (prop, elem) => {
},
methodName: (prop, elem) => {
}
}).then((app) => {
//use app to render() or change values here.
});
2.0.0
1.2.1
1.2.0
- 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 ofgetPropsFromElem(elem)
is passed as a parameterlil-style
will ignore undefined values without throwing an error- Add
lil-index
andlil-list-parent
attributes to elements withlil-list-text
to help identify their parents - Add
lil-click
property type
1.1.0
1.0.2
- Standardize /demo 31ce6e0
- /demo uses src version #6 (@codymikol )
- Use textContent over innerHTML #7 (@codymikol )
- Use prepublish scripts to minify and run docs 31ce6e0
- Set up TravisCI and Karma tests 4943f12 4943f12 1f24ddb
- Lower filesize on
setText
1aa876c (@codymikol )