Filigran

Datatable Example

Translate in French
1 - 50 / 500
First name
lastName
Age
Visits
Status
Description
Profile Progress
LeonTerry16149single8
JamaalRaynor23201single24
EvaCollins10303complicated0
ZackeryStanton616relationship52
TheodoraTremblay2758single8
WadeBechtelar23219complicated5
SerenaHudson33752relationship73
DeronMayert16726single26
ReginaldHackett1265relationship29
ElliotKoepp15787complicated98
RobbieKovacek1587relationship9
ManuelDickens21715complicated28
LanceJast2627complicated21
MissouriGlover20714relationship35
RobertaVolkman33714single16
CalvinBarrows15794single4
JulioStoltenberg26765relationship11
SylvesterRice7519single32
ElijahPfeffer327complicated50
FabiolaRutherford13684single91
BrannonCorwin24418complicated61
FranciscoHudson-Goldner26166single58
MargueriteHagenes2135relationship79
VirgilLebsack776single15
TriciaBahringer9271relationship47
StewartSauer11986complicated5
KraigCollier25801single47
MadelineMorar17182relationship3
RobinCollier13775single4
ErvinDaniel16685relationship52
RosemaryAltenwerth20214single35
BryantConsidine35951relationship74
FrancisFeest-Bartell2658single27
ImaniRussel28756complicated10
JorgeSchimmel26685single66
DeweyDurgan31839relationship97
JordaneRempel13442single79
GeovanyWilliamson39156single96
TwilaTrantow38138single62
CareyRenner38422single58
WilfredBarton12847relationship53
MarianLubowitz0631single6
EstelleMayer2776complicated11
CasimerGottlieb23819relationship6
TamiSchmeler29499complicated96
JoyceJaskolski22117relationship99
TriciaDickinson28997complicated93
JackyKertzmann13663single92
DiannaWiza20427complicated88
InezKrajcik10488relationship1
Selected
{ "selectAll": false, "selectedIds": [], "excludedIds": [] }

How to use this separator

Props

NameTypeDefaultDescription
dataMyCustomType[]-The data displayed in the tab.
columns<ColumnDef<MyCustomType>[]>-The name of the colomns, how to get it, actions on column...
isLoadingboolean-Displays a skeleton on rows while loading.
tableOptions{onRowSelectionChange, getSortedRowModel, getPaginationRowModel, onPaginationChange, enableRowSelection, onColumnOrderChange }-Change the default rendered element for the one passed as a child, merging their props and behavior.
tableState{columnVisibility, columnOrder: string[], columnPinning:{left: string[], right: string[] }, rowPinning{bottom: string[], top: string[] }, columnFilters: {id: string, value: unknown }[], globalFilter: any, sorting: {desc: boolean, id: string }[], expanded:?, grouping: string[], columnSizing:?, columnSizingInfo: { columnSizingStart: [string, number][], deltaOffset: null | number,deltaPercentage: null | number,isResizingColumn: false | string, startOffset: null | number, startSize: null | number } }-Change the default rendered element for the one passed as a child, merging their props and behavior.
onClickRow(row: Row<TData>) => void-Action function triggered when the user clicks on a row.
onResetTable() => void-Reset localStorage used for preferences (order table, number of rows...).
toolbarReactNode-Put anything in this toolbar : button, text, select...
selection{ createSelectionColumn?: boolean, totalSelectableCount?: number,selectionState?: {state, onSelectionChange}, handlers?: {isRowSelected?,toggleRow?,toggleSelectAll?,getSelectionCount?,clearSelection?,isAllSelected?,isSomeSelected?},selectionHeader?: {custom?: (props: {selectionState: SelectionState}) => ReactNode, actions?: (props: {selectionState: SelectionState}) => ReactNode} }-Activate and changes the default display or behavior of the table selection

Playground

Import from @filigran/ui :

Import {Separator} from '@filigran/ui'

Everything possible for declaring columns :