Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Raphael JS store arbitrary data

var circle = r.circle(25,50,10).attr({fill:'#b71e16', stroke:'#71140f'});
// set it
circle.data('custom-attribute', 'value');

// get it
data = circle.data('custom-attribute');
alert(data);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Raphael #JS #store #arbitrary #data
ADD COMMENT
Topic
Name
6+6 =