Tag: angular ui grid

检测到UI Grid v3.1.0列自动宽度问题

我发现了很多关于UI Grid自动宽度问题的问题。 我设法重现其中一个,并希望与您分享如何重现它的细节。 首先,我在隐藏模态中有默认的UI Grid(你可以在这篇文章的末尾找到代码片段)。 重现步骤: 运行代码段,按“启动演示模式”; (没有问题); 关闭模态; 调整浏览器窗口大小。 这里是。 列宽重置为错误值。 var app = angular.module(‘app’, [‘ui.grid’]); app.controller(‘MainCtrl’, [‘$scope’, ‘$http’, ‘uiGridConstants’, function ($scope, $http, uiGridConstants) { $scope.gridOptions1 = { enableSorting: true, columnDefs: [ { field: ‘name’ }, { field: ‘gender’ }, { field: ‘company’, enableSorting: false } ], onRegisterApi: function( gridApi ) { $scope.grid1Api = […]

如何在角度ui网格中进行多重过滤?

我需要过滤具有多个条件的列。 这是我的代码: filters : [ { condition : uiGridConstants.filter.GREATER_THAN, placeholder : ‘greater than’ },{ condition : uiGridConstants.filter.LESS_THAN, placeholder : ‘less than’ } ] 上面的代码将显示“大于”和“小于”特定列的值。 我需要再添加2个条件:类似“不在大于和小于值之间”。 以下是plunker: http ://plnkr.co/edit/co8tfDrn2EOyC5thrMwg?p = preview