在AngularJS内使用带有KendoUI的模态窗口 [英] Using a Modal Window with KendoUI inside of AngularJS

查看:325
本文介绍了在AngularJS内使用带有KendoUI的模态窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在AngularJS上使用KendoUI的窗口有经验吗?

Does anyone have any experience using KendoUI's window with AngularJS?

我目前正在使用 Angular-Kendo ,但我不确定是否很热门干净地使用窗户.或者,如果还有其他方法可以显示模式对话框,并通过局部加载的表单来填充它,那么我也很乐意.

I'm currently using Angular-Kendo but I'm not entirely sure hot to cleanly use the window. Or if there is any other solutions for presenting a modal dialog and filling it with a form loaded via a partial I'm open to that as well.

我当前的代码如下:

HTML:

    <div kendo-window id="addWindow" ng-hidden></div>

JS:

    $scope.addSection = function() {
        $("#addWindow").data("kendoWindow").open();
        return false;
    };

但是我讨厌这个,我在做其他事情时感觉很不对劲.有什么更好的想法吗?

But I hate this, and it feels wrong for how I'm doing everything else. Any thoughts on a better way?

推荐答案

查看此博客文章:

http://www.kendoui.c​​om/blogs/teamblog/posts/13-06-24/announcing-angular-kendo-ui.aspx?utm_content=bufferbbe83&utm_source= buffer& utm_medium = twitter& utm_campaign = Buffer

他们重写了Angular-Kendo,并有一个使用窗口的简洁方法的示例.

They rewrote Angular-Kendo and have an example of a clean way to use a window.

这篇关于在AngularJS内使用带有KendoUI的模态窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆