responsive_lightbox

使 lightbox 在较小屏幕上能够平滑调整

boolean responsive_lightbox;

Example

scheduler.config.responsive_lightbox = true;


Default value:

false
Details

开启此选项(默认关闭)会给 lightbox 添加一个 .dhx_cal_light_responsive 的 CSS 类。

所有 scheduler 内置的 skins 都包含了媒体查询,帮助 lightbox 更好地适应较小屏幕。这意味着:

  • 在移动设备上,lightbox 会拉伸填满整个屏幕
  • 标签和控件会调整大小以适应屏幕

要启用此功能,只需这样设置配置项:

scheduler.config.responsive_lightbox = true;
See also
返回顶部