Skip to content

Commit

Permalink
48399b8f822f40cde08e0b56a0a84b70e8c6a678 Fix: Add attr option to bu…
Browse files Browse the repository at this point in the history
…tton typing

https://datatables.net/forums/discussion/75475

Sync to source repo @48399b8f822f40cde08e0b56a0a84b70e8c6a678
  • Loading branch information
AllanJard committed Feb 17, 2023
1 parent 62c8790 commit 1ace2a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
],
"src-repo": "http://github.com/DataTables/Buttons",
"last-tag": "2.3.4",
"last-sync": "30575e1db8a1d327908215f9952ce8ab35e3101a"
"last-sync": "48399b8f822f40cde08e0b56a0a84b70e8c6a678"
}
7 changes: 7 additions & 0 deletions types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ declare module 'datatables.net' {
*/
action?: FunctionButtonAction;

/**
* Button HTML attributes
*/
attr?: {
[key: string]: string | number
};

/**
* Ensure that any requirements have been satisfied before initialising a button
*/
Expand Down

0 comments on commit 1ace2a8

Please sign in to comment.