javascriptjquerybackbone.jsjointjsrappid

joint.setTheme is not a function in JointJS-Rappid


I am trying to set theme for my application.I included the dependent files in the order jquery,lodash,backbone,graphlib,dagre,keyboard,rappid and localJs file. when i tried to set the theme with joint.setTheme(dark); it throws an error in the console Joint.setTheme is not a function. I went through the rappid documentation Rappid documentation UI

I included rappid.js and rappid.css files instead of including individually other joint.ui.xxx.js files in-order to get access to all the features that rappid provides.

the sample JS code looks like this joint.setTheme error code. How can i set the theme specific to the code written in the fiddle below? please help...


Solution

  • Actually i need Rappid for application styling. What i found is joint.setTheme is available in rappid V2.0 i was using older version(found with joint.version in the console). When i update rappid.min.css and rappid.min.js to V2.0 it is working. @vt your example is impressive. Thanks for that and appreciate your time.