Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update how to guide for toolbar #3715

Merged
merged 3 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified aries-site/public/learnImages/data-simple-filters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ import { Box, Data, DataTable, Grommet, Pagination, Text } from "grommet";

### Toolbar

Add `toolbar` as a boolean property on Data to display a search input, filter button, and results summary above the DataTable.
Setting `toolbar` to 'true' will include a Toolbar containing DataSearch, a results summary above the DataTable, and DataFilters with layer prop.

Grommet offers a [Toolbar component](https://v2.grommet.io/toolbar) for users who may want to configure their own toolbar.

```
<Data data={data} toolbar>
Expand Down Expand Up @@ -170,7 +172,7 @@ Add the following to Data:
</Data>
```

Now, when the filters menu is opened, the filters will look like this:
Now, when the filters layer is opened, the filters will look like this:

<Box
width="medium"
Expand Down
Loading