Joh*_*ohn 4 angularjs angular-ui ui-select
我觉得我的头撞在墙上.
有没有人在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>' }
Run Code Online (Sandbox Code Playgroud)
任何人都有机会在ui-grid里面有一个ui-select的例子吗?
谢谢!
经过几个小时的战斗,我发现了问题!
ui-grid-cell CSS类有溢出:隐藏.这意味着我的ui-select隐藏了下层单元格.
多么有趣,多么有趣.现在要覆盖那个小PITA!
诡计是
append-to-body="true"
Run Code Online (Sandbox Code Playgroud)
但是不要从我这里拿走它,从这个主题的最佳权威中获取它.这是它的完成方式.
http://brianhann.com/ui-grid-and-dropdowns/