new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

shadcn/ui · Components · all subjects

data-table/props

1 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Data Table features setup example

Example setup for declaring table features in data-table-features.ts: import columnFilteringFeature, columnVisibilityFeature, createFilteredRowModel, createPaginatedRowModel, createSortedRowModel, filterFn_includesString, rowPaginationFeature, rowSelectionFeature, rowSortingFeature, sortFn_alphanumeric, sortFn_text, and tableFeatures from @tanstack/react-table. Call tableFeatures() with these features as arguments and register row models with createFilteredRowModel(), createPaginatedRowModel(), createSortedRowModel(). Register filter functions like includesString and sort functions like alphanumeric and text. Export this as a constant and create a type alias for it to use as a generic argument to ColumnDef, Column, Table, and Row.

Give your agent this brain