angular.js - angularjs ng-grid How to set a column to be non-dragable without scroll bars
淡淡烟草味
淡淡烟草味 2017-05-15 16:54:03
0
2
1420

1. A certain column cannot be dragged
http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions.columnDef
Because I set showGroupPanel: true, you can drag and drop to filter
The api didn't find that attribute and asked me to set a certain column separately and not be draggable.

2. No need for scroll bars
http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions

I see in the api there is enableHorizontalScrollbar enableVerticalScrollbar
Horizontal and vertical scrollbar properties
But I can't understand its annotation. If it's not false, why should I use never?

In fact, you can also make it adaptive.

淡淡烟草味
淡淡烟草味

reply all(2)
刘奇

Use enableColumnMovingattributes: Look at my Plunker

大家讲道理

https://github.com/angular-ui/ui-grid/wiki/Defining-columns

groupable:false uses this attribute

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template