Skip to content

Commit

Permalink
feat: 🎸 [Table] Actions to be disabled based on data selection
Browse files Browse the repository at this point in the history
Disabled function accepts data[] as item to evaluate

✅ Closes: 231
  • Loading branch information
luciob committed Feb 9, 2022
1 parent 325194b commit 61f3dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ITableAction extends IPartialIconUtilizer {
/**
* Enables disabled state
*/
disabled?: boolean | ((data: any) => boolean);
disabled?: boolean | ((data: any) => boolean) | ((data: any[]) => boolean);
/**
* Hides action
*/
Expand Down

0 comments on commit 61f3dff

Please sign in to comment.