Skip to content

The Object update

Compare
Choose a tag to compare
@arguiot arguiot released this 01 Oct 10:06
· 95 commits to master since this release

This is a minor update, I added the possibility to use $.css() like:

$.css(".testElement", {
   "background": "red",
   "color": "blue"
});

And, $.var() like:

<p var="person.name"></p>
<p var="person.address.city"></p>
// Create a var for Display.JS. You don't have to add the $ var, you can change the name.
var $ = new DisplayJS(window);
// Create an object 'person' who's name is 'Kevin', and he lives in New York.
var person = {name: 'Kevin', address: {city:'New-York'}};
// Rendering the DOM
$.var();