简体   繁体   English

Kendo Ui Scheduler 放大和缩小按钮

[英]Kendo Ui Scheduler zoom in and out Button

Kendo ui Scheduler, How to add Custom zoom in and out buttons for only Scheduler div? Kendo ui Scheduler,如何仅为 Scheduler div 添加自定义放大和缩小按钮? I tried adding zoom effect, but outer div is zooming but zooming effect is not applied for events.我尝试添加缩放效果,但外部 div 正在缩放但缩放效果不适用于事件。 For example, in below image, if user tries to change the zoom percentage from 100% to 50 % then scheduler div must resize to 50%.例如,在下图中,如果用户尝试将缩放百分比从 100% 更改为 50%,则调度程序 div 的大小必须调整为 50%。

Below Code i tried I used $(' .k-scheduler-timelineview').style.zoom = 50 + "%";下面的代码我试过我用 $(' .k-scheduler-timelineview').style.zoom = 50 + "%"; but zoom effect is not applied to events.但缩放效果不适用于事件。

在此处输入图片说明

This worked for me:这对我有用:

$('.k-scheduler-timelineview').animate({ 'zoom': 1.2 }, 400);

I guess that if the user change the view of the scheduler you will need to aply to other classes like .k-scheduler-workWeekview so would be a good idea to extend the logic.我想如果用户更改调度程序的视图,您将需要应用到其他类,如.k-scheduler-workWeekview所以扩展逻辑是个好主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM