Skip to content

Releases: worldoptimizer/HypeDataDecorator

Hype DataDecorator 1.2.8

13 Apr 18:36
69a8f10
Compare
Choose a tag to compare
  • 1.2.8 Fixed bug that prevented mapDataAttribute to receive the default decorator

Hype DataDecorator 1.2.7

07 Mar 19:19
34b742f
Compare
Choose a tag to compare

Minor update: Adding the hypeDocumentElm and sceneElm to event

Hype DataDecorator 1.2.6

07 Mar 14:36
13149ba
Compare
Choose a tag to compare

Another refactor, comments in code, cleanup and direct observer

Hype DataDecorator 1.2.5

02 Mar 23:40
0c3c2f8
Compare
Choose a tag to compare

Renamed and refactored to Hype Data Decorator to reflect new capabilities

Hype DataFill v1.2.3

02 Mar 12:08
2c5a06b
Compare
Choose a tag to compare

New interface:

// map based on class hence data-headline --> .headline with default innerHTML callback
HypeDataFill.mapDatasetToClass('headline');

// map based on class hence data-bgcolor --> .bgcolor with custom callback
HypeDataFill.mapDatasetToClass('bgcolor', function(elm, value){
	elm.style.backgroundColor = value;
});

// map based on selector with default innerHTML callback
HypeDataFill.mapDatasetToSelector('price', '.only.here', function(elm, value){
	elm.innerHTML = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(value); 
});

The Latest update was inspired by Mark Hunt from Tumult forums adding custom callbacks!
Also, I modified the read me and switched to semantic versioning. Minor update to observe class changes in IDE.
Removed recursive loops (10ms debounce).

Hype DataFill 1.2.2

02 Mar 09:53
6f4cf77
Compare
Choose a tag to compare

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

// map based on class hence data-headline --> .headline with default innerHTML callback
HypeDataFill.mapDatasetToClass('headline');

// map based on class hence data-bgcolor --> .bgcolor with custom callback
HypeDataFill.mapDatasetToClass('bgcolor', function(elm, value){
	elm.style.backgroundColor = value;
});

// map based on selector with default innerHTML callback
HypeDataFill.mapDatasetToSelector('price', '.only.here', function(elm, value){
	elm.innerHTML = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(value); 
});

The Latest update was inspired by Mark Hunt from Tumult forums adding custom callbacks!
Also, I modified the read me and switched to semantic versioning. Minor update to observe class changes in IDE.

Hype DataFill 1.2.1

02 Mar 07:53
1eda4c8
Compare
Choose a tag to compare

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 firing 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. Minor update to observe class changes in IDE.

Hype DataFill 1.2.0

01 Mar 23:31
b1e615f
Compare
Choose a tag to compare

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.

Hype DataFill v1.1

19 Dec 00:47
80ecd8e
Compare
Choose a tag to compare

Version-History

  • 1.0 Initial release under MIT-license
  • 1.1 Added option to set initial value