updates the specified collection with new options
collection | string | number | the name of the collection to update |
options | array | the new values of the collection |
boolean | true, if the update was successful; false, if the collection wasn't found |
gantt.config.lightbox.sections = [
{name:"description", height:38, map_to:"text", type:"textarea", focus:true},
{name:"priority", height:22, map_to:"priority", type:"select", options:gantt.serverList("priorities", values_array)}, {name:"time", height:72, type:"duration", map_to:"auto"}
];
gantt.updateCollection("priorities", new_values_array);
Let's assume that you have the lightbox as in:
gantt.config.lightbox.sections = [
{name:"description", height:38, map_to:"text", type:"textarea", focus:true},
{name:"priority", map_to:"priority", type:"select",
options:gantt.serverList("priorities")}, {name:"time", height:72, type:"duration", map_to:"auto"}
];
With such declaration it would be possible to update options in the select control through the list named 'priorities'.
To update the 'priorities' list you can use:
gantt.updateCollection("priorities", new_priorities_array);