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?
在最新版本的ng-grid(v2.0.7)中,当editableCellTemplate处于编辑模式并失去焦点时,它仍处于编辑模式。这是一个错误还是我错误地配置了网格?
Here's an example: http://plnkr.co/edit/OgEjk7wFaC982FrKbeHH?p=preview where column 0 contains the editableCellTemplate.
下面是一个示例:http://plnkr.co/edit/OgEjk7wFaC982FrKbeHH?p = preview其中第0列包含editableCellTemplate。
1 个解决方案
#1
6
I found the answer in one of the templates inside of ng-grid.js. I was missing ng-input="COL_FIELD"
我在ng-grid.js中的一个模板中找到了答案。我错过了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>
#1
6
I found the answer in one of the templates inside of ng-grid.js. I was missing ng-input="COL_FIELD"
我在ng-grid.js中的一个模板中找到了答案。我错过了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>