gpt4 book ai didi

AngularJS (ng-grid) "editableCellTemplate"在失去焦点时仍处于编辑模式

转载 作者:行者123 更新时间:2023-12-04 08:10:37 26 4
gpt4 key购买 nike

在最新版本的 ng-grid(v2.0.7) 中,当一个 editableCellTemplate 处于编辑模式并且失去焦点时,它仍然处于编辑模式。这是错误还是我错误地配置了网格?

这是一个例子:http://plnkr.co/edit/OgEjk7wFaC982FrKbeHH?p=preview其中第 0 列包含 editableCellTemplate。

最佳答案

我在 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>

关于AngularJS (ng-grid) "editableCellTemplate"在失去焦点时仍处于编辑模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17680363/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com