리소스 스토어에 대한 추가 설정을 정의합니다.
Available only in PRO Edition
gantt.config.resources = {
dataprocessor_assignments: true,
dataprocessor_resources: true,
editable_resource_diagram: true,
resource_store: {
type: "treeDataStore",
fetchTasks: true,
initItem: function(item) {
item.parent = item.parent || gantt.config.root_id;
item[gantt.config.resource_property] = item.parent;
item.open = true;
return item;
}
},
lightbox_resources: function selectResourceControlOptions(resources){
const lightboxOptions = [];
resources.forEach(function(res) {
if (!gantt.$resourcesStore.hasChild(res.id)) {
const copy = gantt.copy(res);
copy.key = res.id;
copy.label = res.text;
lightboxOptions.push(copy);
}
});
return lightboxOptions;
}
};
resources 설정은 여러 옵션을 포함하는 객체입니다:
v8.0에 추가됨
Back to top