How to call fixConnectionLines using boxRenderer?

by nyordanov » Thu Feb 12, 2015 1:39 pm

I am using version 2.2.1 which I think is the last one.
User avatar
nyordanov
 
Posts: 8
Joined: Mon Nov 24, 2014 7:08 am

by Anton Khritonenkov » Thu Feb 12, 2015 3:53 pm

Hi,

The new version provides renderer object which contains most of the functions.

For example to subscribe for boxRendered event you need to put following code inside JavaScript Editor.

Code: Select all
renderer.onBoxRendered(function(event, box, itemData){
  //Box rendered event
});


You can call renderer.fixConnectionLines at any location inside JavaScript editor.
User avatar
Anton Khritonenkov
 
Posts: 216
Joined: Wed Nov 12, 2014 1:33 pm

by nyordanov » Thu Feb 12, 2015 5:41 pm

Which one is the "new" version? We have 2.2.1.
User avatar
nyordanov
 
Posts: 8
Joined: Mon Nov 24, 2014 7:08 am

by Anton Khritonenkov » Fri Feb 13, 2015 3:56 pm

Hi,

Possibly my reply wasn't clear. The new version is current major version 2.*. It is new major version, you need to use renderer object as a main object in JavaScript framework instead of $. jQuery as $ is still accessible and you can use it. The new version is not fully documented yet. So, do not hesitate to ask any questions here about the framework.
User avatar
Anton Khritonenkov
 
Posts: 216
Joined: Wed Nov 12, 2014 1:33 pm


Return to Org Chart for SharePoint 2013