在Kendo DialogService中添加指令
是否可以将指令添加到弹出服务中,在我们的情况下,我们使用Kendo并希望将CDKDRAG指令添加到弹出窗口中,我们无法使弹出窗口变得可拖动。弹出窗口中只有内容是可拖动的。
import { DialogCloseResult, DialogRef, DialogService } from '@progress/kendo-angular-dialog';
constructor(
private dialogService: DialogService,
){}
constructPopup(){
const dialogRef = this.dialogService.open({
title: "Some Title",
content: MyCustomComponent
});
}
Is it possible to add directives to a popup service, in our case we use Kendo and would like to add the cdkDrag directive to the popup, we have not been able to get the popup to be draggable. Only the contents in the popup are draggable.
import { DialogCloseResult, DialogRef, DialogService } from '@progress/kendo-angular-dialog';
constructor(
private dialogService: DialogService,
){}
constructPopup(){
const dialogRef = this.dialogService.open({
title: "Some Title",
content: MyCustomComponent
});
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Kendo具有一个窗口服务,您可以使用该窗口服务,
该选项可拖动,并且提供了与对话的所有功能,等等。
希望这个答案有帮助
Kendo has a window service that you can use instead that is draggable
This option is draggable and gives all the same functionality as the dialogue and some more.
Hope this answer helps