AngularJS(NG-网)QUOT; editableCellTemplate"保持在编辑模式失去焦点 [英] AngularJS (ng-grid) "editableCellTemplate" remains in edit mode on loss of focus
问题描述
在NG-网格(V2.0.7),当editableCellTemplate处于编辑模式和失去焦点的最新版本,它留在编辑模式。这是一个错误还是我错误地配置网格?
In the latest version of ng-grid(v2.0.7), when a editableCellTemplate is in edit mode and loses focus, it remain in edit mode. Is this a bug or did I configure the grid incorrectly?
下面是一个例子:<一href=\"http://plnkr.co/edit/OgEjk7wFaC982FrKbeHH?p=$p$pview\">http://plnkr.co/edit/OgEjk7wFaC982FrKbeHH?p=$p$pview其中,列0包含editableCellTemplate。
Here's an example: http://plnkr.co/edit/OgEjk7wFaC982FrKbeHH?p=preview where column 0 contains the editableCellTemplate.
推荐答案
我发现在NG-grid.js里面的模板之一的答案。我错过了NG-输入=COL_FIELD
I found the answer in one of the templates inside of ng-grid.js. I was missing ng-input="COL_FIELD"
<select ng-cell-input ng-class="'colt' + $index" ng-input="COL_FIELD" ng-model="COL_FIELD">
<option>nl</option>
<option>fr</option>
<option>en</option>
</select>
这篇关于AngularJS(NG-网)QUOT; editableCellTemplate&QUOT;保持在编辑模式失去焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!