Dxhtml调度程序v4.4调整灯箱的大小

时间:2017-09-06 07:49:27

标签: lightbox scheduler dhtmlx

有没有办法更改灯箱的宽度和高度(用于编辑事件的框)?

enter image description here

1 个答案:

答案 0 :(得分:0)

可以使用config:

部分中的height属性更改灯箱控件的高度
scheduler.config.lightbox.sections =  [
    {name: "description", height: 50, map_to: "text", type: "textarea"},
    {name: "time", type: "time", map_to: "auto"}
]

演示:http://snippet.dhtmlx.com/7d3ad241e

您也可以动态访问它们并更改其高度。在这种情况下,您还需要调用scheduler.setLightboxSize来重置总灯箱高度;

演示:http://snippet.dhtmlx.com/7434db034 https://docs.dhtmlx.com/scheduler/api__scheduler_setlightboxsize.html

关于灯箱的宽度,可以通过css进行更改 -  http://snippet.dhtmlx.com/fe8375043(请参阅HTML标签)

相关问题