在Kendo DialogService中添加指令

发布于 2025-01-22 19:10:17 字数 412 浏览 0 评论 0原文

是否可以将指令添加到弹出服务中,在我们的情况下,我们使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

为人所爱 2025-01-29 19:10:17

Kendo具有一个窗口服务,您可以使用该窗口服务,

import { WindowService } from "@progress/kendo-angular-dialog";

constructor(
    private _window: WindowService,
){}

constructPopup(){
    const dialogRef = this.dialogService.open({
        title: "Some Title",
        content: MyCustomComponent
    });
}

该选项可拖动,并且提供了与对话的所有功能,等等。

希望这个答案有帮助

Kendo has a window service that you can use instead that is draggable

import { WindowService } from "@progress/kendo-angular-dialog";

constructor(
    private _window: WindowService,
){}

constructPopup(){
    const dialogRef = this.dialogService.open({
        title: "Some Title",
        content: MyCustomComponent
    });
}

This option is draggable and gives all the same functionality as the dialogue and some more.

Hope this answer helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文