@@ -18,48 +18,48 @@ import { faker } from '@faker-js/faker'
1818const defaultColumns : ColumnDef < Person > [ ] = [
1919 {
2020 header : 'Name' ,
21- footer : props => props . column . id ,
21+ footer : ( props ) => props . column . id ,
2222 columns : [
2323 {
2424 accessorKey : 'firstName' ,
25- cell : info => info . getValue ( ) ,
26- footer : props => props . column . id ,
25+ cell : ( info ) => info . getValue ( ) ,
26+ footer : ( props ) => props . column . id ,
2727 } ,
2828 {
29- accessorFn : row => row . lastName ,
29+ accessorFn : ( row ) => row . lastName ,
3030 id : 'lastName' ,
31- cell : info => info . getValue ( ) ,
31+ cell : ( info ) => info . getValue ( ) ,
3232 header : ( ) => 'Last Name' ,
33- footer : props => props . column . id ,
33+ footer : ( props ) => props . column . id ,
3434 } ,
3535 ] ,
3636 } ,
3737 {
3838 header : 'Info' ,
39- footer : props => props . column . id ,
39+ footer : ( props ) => props . column . id ,
4040 columns : [
4141 {
4242 accessorKey : 'age' ,
4343 header : ( ) => 'Age' ,
44- footer : props => props . column . id ,
44+ footer : ( props ) => props . column . id ,
4545 } ,
4646 {
4747 header : 'More Info' ,
4848 columns : [
4949 {
5050 accessorKey : 'visits' ,
5151 header : ( ) => 'Visits' ,
52- footer : props => props . column . id ,
52+ footer : ( props ) => props . column . id ,
5353 } ,
5454 {
5555 accessorKey : 'status' ,
5656 header : 'Status' ,
57- footer : props => props . column . id ,
57+ footer : ( props ) => props . column . id ,
5858 } ,
5959 {
6060 accessorKey : 'progress' ,
6161 header : 'Profile Progress' ,
62- footer : props => props . column . id ,
62+ footer : ( props ) => props . column . id ,
6363 } ,
6464 ] ,
6565 } ,
@@ -87,12 +87,12 @@ export class AppComponent {
8787 columnVisibility : this . columnVisibility ( ) ,
8888 } ,
8989 getCoreRowModel : getCoreRowModel ( ) ,
90- onColumnVisibilityChange : updaterOrValue => {
90+ onColumnVisibilityChange : ( updaterOrValue ) => {
9191 typeof updaterOrValue === 'function'
9292 ? this . columnVisibility . update ( updaterOrValue )
9393 : this . columnVisibility . set ( updaterOrValue )
9494 } ,
95- onColumnOrderChange : updaterOrValue => {
95+ onColumnOrderChange : ( updaterOrValue ) => {
9696 typeof updaterOrValue === 'function'
9797 ? this . columnOrder . update ( updaterOrValue )
9898 : this . columnOrder . set ( updaterOrValue )
@@ -108,7 +108,7 @@ export class AppComponent {
108108
109109 randomizeColumns ( ) {
110110 this . table . setColumnOrder (
111- faker . helpers . shuffle ( this . table . getAllLeafColumns ( ) . map ( d => d . id ) )
111+ faker . helpers . shuffle ( this . table . getAllLeafColumns ( ) . map ( ( d ) => d . id ) ) ,
112112 )
113113 }
114114
0 commit comments