serverList
Description
返回一个选项列表
serverList: (list_name: string | number, options?: any[]) => any[]
Parameters
list_name- (required) string | number - 列表的名称options- (optional) array - 包含选项的数组
Returns
list- (array) - 一个选项数组
Example
// 获取名为 'my_list' 的选项列表
var list = gantt.serverList("my_list");
...
// 创建并返回一个包含指定选项的列表
var list = gantt.serverList("options", [
{key: 1, label: "John"},
{key: 2, label: "Adam"},
{key: 3, label: "Diane"}
]);