Skip to content

Hype DataFill 1.2.0

Compare
Choose a tag to compare
@worldoptimizer worldoptimizer released this 01 Mar 23:31
· 59 commits to master since this release
b1e615f

Inspired by Mark Hunt from Tumult forums I added a third parameter custom callbacks!

Allowing for things like mapping data-bgcolor to the class .bgcolor and fireing a custom callback when the data-bgcolor changes or is set.

HypeDataFill.mapDatasetToClass('bgcolor', '.bgcolor', function(elm, value){
	elm.style.backgroundColor=value;
});

Also, I modified the read me and switched to semantic versioning.