gantt.locale.labels.section_resources = "Rooms";
特性
单选按钮控件标签_html删除按钮标签’/>
以下属性最重要且通常用于资源控制:
focus – ( boolean ) 如果设置为true,该部分将专注于打开灯箱default_value – ( any ) 该部分控件的默认值。如果资源的价值不足,则应用。选项数组中的每个选项都可以指定自己的默认值。用数据填充控件
单选按钮控件标签_html删除按钮标签_input radio 单选’/>
通常html单选按钮控件标签html单选按钮控件标签,要设置资源控制的值,请使用options参数:
gantt.config.lightbox.sections = [
{ name:"rooms",type:"resources",map_to:"rooms",
options:[
{ key: 1, label: "room 1", unit: "hours" },
{ key: 2, label: "room 2", unit: "hours" },
{ key: 3, label: "room 3", unit: "hours" }
]
}
];
<img src='https://cdn.soaroff.com/20230626/009386246474e65d8facad082e8b1833_0.png' alt='html单选按钮控件标签_html删除按钮标签_input radio 单选’/>
options参数中的项目具有 3 个强制属性:
使用来自服务器的数据填充控件
单选按钮控件标签_input radio 单选_html删除按钮标签’/>
要从服务器填充控件,请将options选项设置为serverList方法返回的值:
gantt.config.lightbox.sections = [
{name: "description", height: 38, map_to: "text", type: "textarea", focus: true},
{name: "resources", type: "resources", map_to: "owner_id", default_value:8,
options: gantt.serverList("people")},
{name: "time", type: "duration", map_to: "auto"}
];
gantt.init("gantt_here");
gantt.load("/data");
单选按钮控件标签’/>
更多关于DhtmlxGantt教程的内容可进入官网查看。
DhtmlxGantt是针对您的解决方案的交互式JavaScript / HTML5甘特图。更多关于产品的疑问,都可以私信了解更多。
限 时 特 惠: 本站每日持续更新海量各大内部创业教程,一年会员只需98元,全站资源免费下载 点击查看详情
站 长 微 信: muyang-0410
声明:本站所有资源系站长耗费大量精力时间物力长期搜集维护,故仅对会员免费开放,每日手选更新,非烂大街的采集站,开通会员: 点击此处自助开通或者联系站长微信muyang-0410开通




