这是一个多行文本字段。
默认情况下,弹出框(lightbox)中包含一个 textarea 控件。若需添加额外的 textarea 控件,请按照以下步骤操作:
1) 在 lightbox 配置中添加一个 section:
gantt.config.lightbox.sections = [
{name:"description", height:38, map_to:"desc", type:"textarea",focus:true},
{name:"details", height:38, map_to:"text", type:"textarea"}, {name:"time", height:72, map_to:"auto", type:"duration"}
];
2) 为新添加的 section 定义一个标签:
gantt.locale.labels.section_details = "Details";
以下是 textarea 控件常用的主要属性(完整列表请参见 这里):