Available only in PRO Edition
此功能仅在 PRO 版本中提供。
这是一个用于更改任务类型的选择框。
它从 types 对象中获取选项,并使用默认的 onchange 处理器。除此之外,它的行为与 Select 控件 中描述的控件相同。
gantt.config.lightbox.sections = [
{name:"description", height:38, map_to:"text", type:"textarea", focus:true},
{name: "type", type: "typeselect", map_to: "type"}, {name: "time", height: 72, type: "duration", map_to: "auto"}
];
Related sample: Projects and milestones
要在 lightbox 中包含 typeselect 控件,只需像下面这样在 lightbox 配置中添加一个 section:
gantt.config.lightbox.sections = [
{name:"description", height:38, map_to:"text", type:"textarea",focus:true},
{name: "type", type: "typeselect", map_to: "type"}, {name: "time", height: 72, type: "duration", map_to: "auto"}
];
Related sample: Projects and milestones
gantt.locale.labels.section_type = "New label for the section";
以下是 typeselect 控件常用的主要属性(完整列表见此处):