-
Notifications
You must be signed in to change notification settings - Fork 8
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
Kt standard table wip #1029
base: new-kt-table
Are you sure you want to change the base?
Kt standard table wip #1029
Conversation
Co-Authored-By: Moritz Vetter <[email protected]>
…dd isLoading to DateRange picker, hide optional suffix in filter fields, replace ::v-deep with :deep(), fix typo in docs
Kt standard table cherrypick
Kt standard table inline filters
…ts, fix date range translations, update docs page
…-props-table-slot add boolean props, add table slot, remove pageIndex and pageSize even…
}, | ||
{ | ||
display: { decimalPlaces: 2, type: 'numerical' }, | ||
filterFn: (row, columnId, filterValue) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filterFn
is exposed in the Column
type. Right now its implementation is on the user side. Could be moved into the standard table hook at the expense of leaving less flexibility in terms of the implementation/logic for the filters/values in the table.
/** | ||
* https://github.com/TanStack/table/discussions/4670 | ||
*/ | ||
const globalFilter = ref<KottiFieldText.Value>(' ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently Column filters aren't applied until the Global filter is applied. Maybe this was fixed on a more recent version of tanstack table
columnFilters: z | ||
.object({ | ||
id: z.string(), | ||
// Zod schema `z.unknown()` incorrectly infers the property as optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zod has issues with the unknown type
75f64c5
to
f001691
Compare
4ee2681
to
793133f
Compare
No description provided.