Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- how to change the content of a header cell in dataTables?
- $( oSettings.aoColumns[i].nTh).text();
- $( oSettings.aoColumns[i].nTh).text("some text");
- $( oSettings.aoColumns[i].nTh).html("<a href='#'>some button</a>");
- "aoColumns": [
- /* Select */ {"bSortable": false },
- /* Type */ {"sClass": "jqmSorter"},
- /* From */ {"bSortable": false },
- /* Status */ {"bSortable": false },
- ],
- "fnHeaderCallback": function( nHead ) {
- $(nHead).closest('thead').find('.jqmSorter').each( function () {
- var sortTitle = $(this).text(),
- sortButton =
- $( document.createElement( "a" ) ).buttonMarkup({
- shadow: false,
- corners: false,
- theme: 'a',
- iconpos: "right",
- icon: "ui-icon-radio-off"
- })
- sortButton.find('.ui-btn-text').text(sortTitle);
- $(this).html( sortButton )
- sortButton.addClass("colHighTrigger");
- });
- }
- $(nRow, '.your_class').html('Your HTML Values');
Advertisement
Add Comment
Please, Sign In to add comment