给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
});
}

Kendo有一个可以拖动的窗口服务

import { WindowService } from "@progress/kendo-angular-dialog";
constructor(
private _window: WindowService,
){}
constructPopup(){
const dialogRef = this.dialogService.open({
title: "Some Title",
content: MyCustomComponent
});
}

这个选项是可拖动的,并提供与对话框相同的功能以及更多。

希望这个答案有帮助

最新更新