gridOptions.columnApi.applyColumnState({ state: [ { colId: 'country', sort: 'asc', sortIndex: 0 }, { colId: 'sport', sort: 'asc', sortIndex: 1 }, ], defaultState: { sort: null }, });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter