我感觉自己正在用头撞墙。
有人有在 ui-grid 内部使用 ui-select 的示例吗? (3.0)
我在使用 ui-grid 内部的 ui-select 作为 cellTemplate 时遇到了最困难的情况,即:
{ field: "Job.JobTitle", displayName: "Job Title", enableCellEdit: true, editableCellTemplate: '<ui-select ng-model="job.selected" theme="select2" style="width:100%;"><ui-select-match placeholder="Select a job...">{{$select.selected.JobTitle}}</ui-select-match><ui-select-choices repeat="job in jobs | filter: $select.search"><div ng-bind-html="job.JobTitle | highlight: $select.search"></div></ui-select-choices></ui-select>' }
有没有人在 ui-grid 中有一个 ui-select 的例子?
谢谢!
最佳答案
经过几个小时的努力,我发现了问题!
ui-grid-cell CSS 类具有溢出:隐藏。这意味着我的 ui-select 隐藏在较低的单元格后面。
真好玩,真好玩。现在覆盖那个小 PITA!
关于angularjs - UI-Grid 中的 Angular UI-Select?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27216064/