Skip to content

Commit

Permalink
docs: update FilterToolbar docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Loxeris committed Aug 27, 2024
1 parent dda6abc commit 4bd94e1
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ export const Default: Story = {
{ id: "name", label: "Name" },
{ id: "age", label: "Age" },
],
filters: [{ id: 0, column: "id", operator: "eq", value: "1" }],
filters: [
{ id: 0, column: "id", operator: "eq", value: "1" },
{ id: 1, column: "id", operator: "neq", value: "2" },
],
setFilters: () => {},
handleApplyFilters: () => {},
appliedFilters: [{ id: 0, column: "id", operator: "eq", value: "1" }],
},
render: (props) => {
const [, updateArgs] = useArgs();
const [{ filters }, updateArgs] = useArgs();
props.setFilters = (filters) => updateArgs({ filters });
props.handleApplyFilters = () => updateArgs({ appliedFilters: filters });
return <FilterToolbar {...props} />;
},
};

0 comments on commit 4bd94e1

Please sign in to comment.