简体   繁体   English

隐藏在 kendo kendo-sortable angular 中拖动时的弹出窗口

[英]Hide popup on drag in kendo kendo-sortable angular

I'm using Angular and Kendo , Now I'm meet the problem when I want to hide the popup when drag using kendo-sortable as here as I draw in the picture我正在使用AngularKendo ,现在当我想在使用 kendo -sortable拖动时隐藏弹出窗口时遇到问题,就像我在图片中绘制的那样在此处输入图像描述

I try a lot of time to hide that but still cannot.我尝试了很多时间来隐藏它,但仍然无法隐藏。

please help me.请帮我。

a bit late for you, but may help other.对你来说有点晚了,但可能会帮助其他人。 I think kendo team should add a class (or api) for it, but I couldn't find anything.我认为剑道团队应该为它添加一个 class (或 api),但我找不到任何东西。 So here is my workaround which works for me:所以这是我的解决方法,对我有用:

I add a style on the active class which hides all active items (these are the dragged one and the popup one) and also add another style for the dragged one to show it.我在活动的 class 上添加了一个样式,它隐藏了所有活动项(这些是拖动的项和弹出项),并为拖动的项添加了另一种样式以显示它。 So only the popup one will be hidden.所以只有弹出窗口会被隐藏。 I found no option to select the popup one as it lacks on properties and styles我没有找到 select 弹出窗口的选项,因为它缺少属性和 styles

 @Component({ selector: 'app-sorttest', templateUrl: './sorttest.component.html', styles: ['.active { display: none; }.active[kendodraggable] { display: block; }'], encapsulation: ViewEncapsulation.None })
 <kendo-sortable [kendoSortableBinding]="items" [navigable]="true" [animation]="true" class="row" itemClass="item col-xs-6 col-sm-3" activeItemClass="item col-xs-6 col-sm-3 active"> </kendo-sortable>
Greets Niko 问候尼科

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

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