简体   繁体   English

UI-Grid Angularjs,获取排序后的字段?

[英]UI-Grid Angularjs, get the sorted fields?

I have found this option for ng-grid ==> getSortModel(), but not for http://ui-grid.info/ . 我已经为ng-grid ==> getSortModel()找到了这个选项,但没有为http://ui-grid.info/找到这个选项。

Anyone has an idea on how to get these values from the grid and nog using jquery or some custom javascript to actually get the values in the column header? 任何人都有一个想法如何从网格中获取这些值,并使用jquery或一些自定义javascript来实际获取列标题中的值?

The only way i know is: iterate over all columns, getting filters: 我知道的唯一方法是:遍历所有列,获取过滤器:

$scope.gridOptions.columnDefs.forEach(function (c) {
var term = c.filter.term
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM