UNPKG

alpaca

Version:

Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide

21 lines (20 loc) 552 B
/** * This plug-in will read the text from the header cell of a column, returning * that value. * * @name column().title() * @summary Get the title of a column * @author Alejandro Navarro * @requires DataTables 1.10+ * * @returns {String} Column title * * @example * // Read the title text of column index 3 * var table = $('#example').DataTable(); * table.column( 3 ).title(); */ $.fn.dataTable.Api.register( 'column().title()', function () { var colheader = this.header(); return $(colheader).text().trim(); } );