Skip to content

Commit

Permalink
Added ((data: any) => string) to dataKey property definition (#6960)
Browse files Browse the repository at this point in the history
  • Loading branch information
sja-cslab authored Aug 1, 2024
1 parent 99ab7d6 commit b74b7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/datatable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ interface DataTableBaseProps<TValue extends DataTableValueArray> extends Omit<Re
* Name of the field that uniquely identifies a record in the data. Should be a unique business key to prevent re-rendering.
* @defaultValue (&#123;currentPage&#125; of &#123;totalPages&#125;)
*/
dataKey?: string | undefined;
dataKey?: string | undefined | ((data: any) => string);
/**
* Default sort order of an unsorted column.
* @defaultValue (&#123;currentPage&#125; of &#123;totalPages&#125;)
Expand Down

0 comments on commit b74b7ca

Please sign in to comment.