问题
I am using ag-grid to show data but while using it I have 2 scroll bars one at grid-level and another at browser level I want to use browser level scroll bar for ag-grid. I didn't find any clue in the ag-grid documentation to implement this.
回答1:
You can use domLayout
property for this.
Refer to this example how they have set domLayout = "autoHeight"
and how it is being used: ag-grid Auto-Height
domLayout: Set to 'normal', 'autoHeight' or 'print' to switch between layout options. The default is 'normal'.
来源:https://stackoverflow.com/questions/52589587/use-browser-level-scroll-instead-of-grid-level-table-level-scroll-in-ag-grid