Example 3: Formatting data with use of the present component
Datadescription component can be used to color displayed data.
Data is formated on base of bindpoints, so data can be formated in any component that uses bindpoints in their template.
Some components integrate support for datadescription, even if they use other display technique. e.g. Worldmap3D.
window.swac.reactions.addReaction(function(requestors) {
requestors['datadescription_example1'].swac_comp.formatDataElement(requestors['datadescription_example2']);
},'datadescription_example1','datadescription_example2');