diff --git a/types/datatables.net/datatables.net-tests.ts b/types/datatables.net/datatables.net-tests.ts index d6903ce1db..bdb10aa671 100644 --- a/types/datatables.net/datatables.net-tests.ts +++ b/types/datatables.net/datatables.net-tests.ts @@ -615,7 +615,7 @@ dt.columns('.select-filter').eq(0).each((colIdx: any) => { // Create the select list and search operation const select = $('') .appendTo( - dt.column(0).footer() + dt.column(0).footer() ) .on('change', () => { dt @@ -735,7 +735,7 @@ $('#example').on('click', 'tbody td', () => { alert('Data source: ' + dt.column(idx).dataSrc()); }); -const column_footer = column.footer(); +const column_footer: HTMLElement = column.footer(); const column_p = dt.column(0); // $(column.footer()).html( // column_p @@ -745,15 +745,15 @@ const column_p = dt.column(0); // }) // ); -const column_header = column.header(); +const column_header: HTMLElement = column.header(); $('#example tbody').on('click', 'td', function() { const idx = dt.cell(this).index().column; - const title = dt.column(idx).header(); + const title: HTMLElement = dt.column(idx).header(); alert('Column title clicked on: ' + $(title).html()); }); -let column_index = column.index(); +let column_index: number = column.index(); column_index = column.index("visibile"); dt.column(0).visible(false); @@ -762,11 +762,9 @@ alert(idx); // will show 0 dt.column('0:visible').order('asc'); -const column_nodes = column.nodes(); -dt.column(-1) - .nodes(); -// .to$() // Convert to a jQuery object -// .addClass('ready'); +const column_nodes: DataTables.Api = column.nodes(); +column_nodes.to$() // Convert to a jQuery object + .addClass('ready'); const column_search_get = column.search(); let column_search_set = column.search("string"); @@ -784,7 +782,7 @@ dt.columns('.select-filter').eq(0).each((colIdx: any) => { // Create the select list and search operation const select = $('