我正在使用BalkanGraph库,并且对此JS库做了一个基本示例。我想在侧面板内部配置显示的字段。但是我做不到。是否可以某种方式删除任何字段? 示例:我不想在侧面板上看到“标题字段” 这是我的代码;
var chart = new OrgChart(document.getElementById("tree"), {
enableSearch: false,
scaleInitial: 0.7,
template: "ula",
nodeMouseClick: OrgChart.action.details,
onClick: function (sender, node) {
// delete chart.config.nodeBinding.field_0;
// * Can I remove any field in this section ? * //
// chart.draw();
},
nodeBinding: {
field_0: "name",
field_1: "title"
},
nodes: [
{ id: 1, name: "Amber McKenzie", title: "CEO"},
{ id: 2, pid: 1, name: "Ava Field", title: "IT Manager"},
{ id: 3, pid: 1, name: "Rhys Harper", title: "IT Manager"}
]
});