We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the data table walk through, there is a missing field in the "Filtering" section.
there should also be the field onColumnFiltersChange: setColumnFilters, set on the table variable.
onColumnFiltersChange: setColumnFilters,
table
I also think the function is missing return.
return
I'd be willing to open a PR fixing this.
DataTable
https://shadcn-solid.com/docs/components/data-table
No response
...
The text was updated successfully, but these errors were encountered:
Also, the text input should be updated to
import { TextField, TextFieldRoot, } from "~/components/ui/textfield"; // ... <TextFieldRoot> <TextField placeholder="Filter title..." value={(table.getColumn("title")?.getFilterValue() as string) ?? ""} onInput={(event) => { return table .getColumn("title") ?.setFilterValue(event.currentTarget.value); }} class="max-w-sm" /> </TextFieldRoot>
Sorry, something went wrong.
The line in "Visibility" should be highlighted } from "@/components/ui/dropdown-menu";
} from "@/components/ui/dropdown-menu";
In "Visibility", DropdownMenuTrigger should be changed to
DropdownMenuTrigger
import { Button } from "~/components/ui/button"; import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"; // ... <DropdownMenuTrigger as={(props: DropdownMenuSubTriggerProps) => ( <Button variant="outline" class="ml-auto" {...props}> Columns </Button> )} />
Thanks, this will be included in the next update.
Successfully merging a pull request may close this issue.
Describe the bug
In the data table walk through, there is a missing field in the "Filtering" section.
there should also be the field
onColumnFiltersChange: setColumnFilters,
set on thetable
variable.I also think the function is missing
return
.I'd be willing to open a PR fixing this.
Affected component/components
DataTable
How to reproduce
Codesandbox/StackBlitz link
https://shadcn-solid.com/docs/components/data-table
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: