【问题标题】:Custom ng-grid edit cell template never goes out of edit mode自定义 ng-grid 编辑单元格模板永远不会退出编辑模式
【发布时间】:2014-06-09 07:12:30
【问题描述】:

我一直在玩ng-grid,并试图了解如何使用editCellTemplate 选项。 我试图以select 组件的形式使单元格可编辑,它工作得非常棒,但是在我完成编辑并将焦点移出单元格后,它仍处于选择状态,而不是返回到默认状态. Here's a Plunker of what I tried to do(点击height单元格进行编辑)。

有人知道如何让可编辑单元格恢复到默认模式吗?

【问题讨论】:

标签: angularjs ng-grid


【解决方案1】:

一个很好的解决方案 ng-grid:可编辑单元格模板在失去焦点时保持编辑模式 v2.0.7

        [2]:https://groups.google.com/forum/#!topic/angular/5MZITMG_HLo
        <select ng-class="'colt' + col.index" ng-input="COL_FIELD" ng-model="COL_FIELD" data-placeholder="-- Select One --">
    <option>nl</option>
    <option>fr</option>
    <option>en</option>
</select>   

【讨论】:

    猜你喜欢
    • 2017-11-27
    • 1970-01-01
    • 1970-01-01
    • 2011-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-24
    相关资源
    最近更新 更多