小编Rob*_*Rob的帖子

GWT Suggestbox在实例化后定义了oracle建议

我在UIBinder中定义了一个suggestbox,我需要动态设置它的SuggestOracle.我见过的所有例子都表明你只能在实例化时定义一个推荐,但我需要在事后定义它.有没有办法做到这一点?

谢谢!

gwt suggestbox uibinder

12
推荐指数
1
解决办法
3354
查看次数

AngularJS ui-grid问题与cellTemplate中的指令

我头疼了!这似乎是一个相当简单的问题......我正在使用ui-grid角度控件,我试图在cellTemplate中使用自定义指令.我可以成功地在那里得到它,但问题是我无法正确绑定到指令.我可以绑定属性,但不能绑定父级的函数.当我尝试访问已绑定的父函数时,我得到一个未定义的对象错误.

据我所知,我正确设置了绑定和单元格模板:

//in columndefs:
{
        name: 'item', displayName: 'Status',
        width: 200, cellTemplate: '<dropdowncss item="row.entity[col.field]" do-drop="dropdowncombo"></dropdowncss>'
},

//directive declaration:
app.directive('dropdowncss', function () {
    return {
        restrict: 'E',
        scope:
            {
                item: '=',
                doDrop: '&'
            },
        controller: 'DropDownCSSCtrl',
        templateUrl: 'dropdowncss.html'
    };
Run Code Online (Sandbox Code Playgroud)

当您单击其中一个彩色下拉菜单时,它应提醒"成功"请在此处查看简单的plunker:

http://plnkr.co/edit/HuuxxgV1GoWzfWlUvafw?p=preview

任何帮助,将不胜感激.谢谢!

angularjs angular-ui-grid

3
推荐指数
1
解决办法
6973
查看次数

AngularJs - why is $emit not working from my popup window

I'm using the bootstrap popup modal window, and trying to $emit and event but for some reason the main page is not detecting the event. It's a pretty simple setup, but I can't figure out why. From what I can tell when viewing Batarang it appears the popup is a child scope of the main app scope so I thought it would work but it doesn't. In this simple app when you press 'ok' in the popup window it should …

emit angularjs

2
推荐指数
1
解决办法
4479
查看次数

标签 统计

angularjs ×2

angular-ui-grid ×1

emit ×1

gwt ×1

suggestbox ×1

uibinder ×1