Skip to content

Commit

Permalink
Misc doc adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Nov 22, 2022
1 parent f4d7a74 commit 6e71caf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/Datagrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ const PostList = () => (

## Showing / Hiding Columns

The [`<SelectColumnsButton>`](./SelectColumnsButton.md) lets users hide or show datagrid columns.
The [`<SelectColumnsButton>`](./SelectColumnsButton.md) component lets users hide, show, and reorder datagrid columns.

![SelectColumnsButton](./img/SelectColumnsButton.gif)

Expand Down
6 changes: 5 additions & 1 deletion docs/SelectColumnsButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ This button lets users show or hide columns in a Datagrid. It must be used in co

![SelectColumnsButton](./img/SelectColumnsButton.gif)

## Usage

Add the `<SelectColumnsButton>` component to the `<List actions>` prop:

```jsx
import {
DatagridConfigurable,
Expand Down Expand Up @@ -36,7 +40,7 @@ const PostList = () => (
);
```

**Note**: `<SelectColumnsButton>` doesn't work with `<Datagrid>` - you must use `<DatagridConfigurable>` instead.
**Note**: `<SelectColumnsButton>` doesn't work with `<Datagrid>` - you must use [`<DatagridConfigurable>`](./Datagrid.md#configurable) instead.

If you want to add the `<SelectColumnsButton>` to the usual List Actions, use the following snippet:

Expand Down

0 comments on commit 6e71caf

Please sign in to comment.