File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 55
55
return rows ;
56
56
} ) ;
57
57
58
- grid . registerColumnsProcessor ( function allColumnsVisible ( columns ) {
58
+ grid . registerColumnsProcessor ( function applyColumnVisibility ( columns ) {
59
59
columns . forEach ( function ( column ) {
60
- column . visible = true ;
60
+ column . visible = angular . isDefined ( column . colDef . visible ) ? column . colDef . visible : true ;
61
61
} ) ;
62
62
63
63
return columns ;
64
64
} , 50 ) ;
65
65
66
- grid . registerColumnsProcessor ( function ( renderableColumns ) {
67
- renderableColumns . forEach ( function ( column ) {
68
- if ( column . colDef . visible === false ) {
69
- column . visible = false ;
70
- }
71
- } ) ;
72
-
73
- return renderableColumns ;
74
- } , 50 ) ;
75
-
76
-
77
66
grid . registerRowsProcessor ( grid . searchRows , 100 ) ;
78
67
79
68
// Register the default row processor, it sorts rows by selected columns
You can’t perform that action at this time.
0 commit comments