Skip to content

Commit

Permalink
Make column name optional (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragate authored Aug 14, 2021
1 parent 348256c commit 62850fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface IDataTableConditionalCellStyles<T = any> {

export interface IDataTableColumn<T = any> {
id?: string | number;
name: string | number | React.ReactNode;
name?: string | number | React.ReactNode;
selector?: string | ((row: T, rowIndex: number) => React.ReactNode);
sortable?: boolean;
sortFunction?: (a: T, b: T) => number;
Expand Down

0 comments on commit 62850fb

Please sign in to comment.