Returns a function that toggles the grouping state of the column. This is useful for passing to the onClick prop of a button. API Docs Guide
onClick