Open feldmarv opened 7 years ago
Hey there Is it possible to render javascript objects inside nodeContent. At the moment I am just able to expose the javascript object.
$('#chart-container').orgchart({ 'data' : department_chart_config.datasource, 'depth': 10, 'nodeContent': 'users', 'draggable': true, 'dropCriteria': function($draggedNode, $dragZone, $dropZone) { if($draggedNode.find('.content').text().indexOf('manager') > -1 && $dropZone.find('.content').text().indexOf('engineer') > -1) { return false; } return true; } });
Any idea?
Hey, I see you are trying to add users for a department, I am trying to do the same, did you get anywhere with this?
Hey there Is it possible to render javascript objects inside nodeContent. At the moment I am just able to expose the javascript object.