Subversion-Projekte lars-tiefland.zeldi.de_alt

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
/**
2
 * This plug-in will read the text from the header cell of a column, returning
3
 * that value.
4
 *
5
 *  @name column().title()
6
 *  @summary Get the title of a column
7
 *  @author Alejandro Navarro
8
 *  @requires DataTables 1.10+
9
 *
10
 * @returns {String} Column title
11
 *
12
 *  @example
13
 *    // Read the title text of column index 3
14
 *    var table = $('#example').DataTable();
15
 *    table.column( 3 ).title();
16
 */
17
 
18
$.fn.dataTable.Api.register( 'column().title()', function () {
19
    var colheader = this.header();
20
    return $(colheader).text().trim();
21
} );