Filigran

Datatable Example

Translate in French
1 - 50 / 500
First name
lastName
Age
Visits
Status
Description
Profile Progress
SylvanGorczany2290relationship7
MadisenVon40984single75
GeorgeWiegand25794single97
LucyChristiansen21972complicated70
JoshEmard34583single85
IvoryJast23551single46
PascaleBogisich8331complicated70
MiguelBruen4252single91
GraceMacejkovic35734single35
MaryAbernathy0328single71
DeliaHowell4904relationship16
IsaacMarvin38657complicated92
FrederickLeffler2574complicated14
SidneyHarber34305single5
LindaO'Conner34397relationship42
NobleConnelly7822complicated20
KailynRice33231relationship7
BenjaminMurazik782relationship40
FrankieDooley13847relationship8
WilburHilpert6646complicated41
AngelinaAuer40420single13
TrevionHand31879complicated7
DestineeMayer2918relationship94
CrystelZemlak14572single21
EllaKrajcik31299relationship8
MatteoGislason22983complicated64
SeanMedhurst24662complicated60
ZacharyMosciski28592single56
RudolphPowlowski31568relationship52
HertaGlover14498complicated19
LoyalMohr12493complicated28
CamilleHerman-Hane35728relationship97
KaitlynHintz0372single7
SilviaBotsford4294complicated45
NathanialD'Amore31514relationship92
EddSchmitt11273single55
AllenStroman16345relationship31
MadalynWisoky19353relationship72
NoraMcKenzie23715single46
SuzanneStark6575single23
GilbertoZieme10361complicated40
StanGislason8722single43
FredaD'Amore19357complicated81
RufusHalvorson18385relationship59
ChanellePurdy40842single96
BoKirlin-Hermiston14895complicated89
NobleDavis26945relationship29
SylviaGreenholt29137single32
KarenRohan37817relationship55
HardyKessler12530complicated56
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 :