diff --git a/datatables.net-buttons/datatables.net-buttons-tests.ts b/datatables.net-buttons/datatables.net-buttons-tests.ts index 6acbbeaf8a..015917c456 100644 --- a/datatables.net-buttons/datatables.net-buttons-tests.ts +++ b/datatables.net-buttons/datatables.net-buttons-tests.ts @@ -22,6 +22,7 @@ $(document).ready(function () { name: 'name', namespace: 'namespace', titleAttr: 'title', + title: 'title' } ], } diff --git a/datatables.net-buttons/index.d.ts b/datatables.net-buttons/index.d.ts index b4ed4b0eb5..5be5b7b93a 100644 --- a/datatables.net-buttons/index.d.ts +++ b/datatables.net-buttons/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for JQuery DataTables Buttons extension 1.1.0 // Project: http://datatables.net/extensions/buttons/ -// Definitions by: Sam Germano +// Definitions by: Sam Germano , Jim Hartford // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -80,6 +80,11 @@ declare namespace DataTables { */ titleAttr?: string; + /** + * Button 'title' text + */ + title?: string; + exportOptions?: ButtonExportOptions; autoPrint?: boolean; customize?: FunctionButtonCustomize; diff --git a/datatables.net-buttons/tsconfig.json b/datatables.net-buttons/tsconfig.json index 5e407ab2d8..bf477f34b0 100644 --- a/datatables.net-buttons/tsconfig.json +++ b/datatables.net-buttons/tsconfig.json @@ -12,7 +12,7 @@ "typeRoots": [ "../" ], - "types": [], + "types": ["jquery","datatables.net"], "noEmit": true, "forceConsistentCasingInFileNames": true },