From 1ace2a8781c58b4f08cfcb1847d27f64ef9c41ff Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Fri, 17 Feb 2023 09:16:29 +0000 Subject: [PATCH] 48399b8f822f40cde08e0b56a0a84b70e8c6a678 Fix: Add `attr` option to button typing https://datatables.net/forums/discussion/75475 Sync to source repo @48399b8f822f40cde08e0b56a0a84b70e8c6a678 --- datatables.json | 2 +- types/types.d.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/datatables.json b/datatables.json index bfb2811..96a025d 100644 --- a/datatables.json +++ b/datatables.json @@ -15,5 +15,5 @@ ], "src-repo": "http://github.com/DataTables/Buttons", "last-tag": "2.3.4", - "last-sync": "30575e1db8a1d327908215f9952ce8ab35e3101a" + "last-sync": "48399b8f822f40cde08e0b56a0a84b70e8c6a678" } \ No newline at end of file diff --git a/types/types.d.ts b/types/types.d.ts index 5b9668c..279b1ff 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -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 */