javascript - How to update raphael Text dynamically -
i drawing flow chart based on raphael shapes & text. on page load, drew rapahel shapes text inside. text status. there background processing happening changing status. want update status(which rapahel text inside raphael shape)on button click without redrawing on flow chart shapes again. i.e wants update text inside shape. here both shapes , texts in array. using json status.
please refer following stackoverflow question code , flow chart. looking pointer achieve this. cannot whole code because of server side scripting dependency
assuming raphtext
raphaeljs text element reference raphtext.attr("text", "new status");
change text content.
for further information: have @ http://raphaeljs.com/reference.html#element.attr .
Comments
Post a Comment