Is it possible to make a CHM documentation file?
Put Full Pagination option on [...]
The DataTable option asStripClasses has been changed to asStripeClasses, which, if was not a typo, should be considered as a breaking change and listed on the upgrade notes
nScrollHeadInner.style.width = "100%"; /* will be overwritten */
var resultTable = $( form.searchResult ).dataTable({
"bAutoWidth": false,
"bServerSide": true,
"sAjaxSource": "fetchtabledata.do?"+"instance=<c:out value="${resultsBean.instance}"/>",
"bDeferRender": true,
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
var cells = nRow.cells,
ch = $(cells[0]).text(),
at = $(cells[1]);
//add checkbox
$( cells[0] ).text("").html( $( '<input type="checkbox">' ).attr( "checked", ( ch == 1 ) ? true:false ) );
//add attachment
if (at.text() == 1) {
at.html( "<span class=\"ui-button-icon-primary ui-icon ui-icon-disk\" alt=\"<bean:message key='alt.attach'/>\"</span>" )
}
for ( var int = 2; int < cells.length; int++) {
var cell = $( cells[int] ),
text = cell.text();
cell.attr( 'title', text ).wrapInner( '<div class="xS"/><div class="xT"/><div class="y6"/>' );
}
},
"bJQueryUI": true,
"bSort": false,
"sDom": 'r<"H"i>t<"F">S',
"bStateSave": true,
/*"iCookieDuration": 60*60*24, */
"sScrollY": searchResultsHeight,
"aoColumnDefs": [
{ "bVisible": false, "aTargets": [ 0 ] },
{ "sWidth": "20px", "aTargets": [ 1,2 ] },
{ "sWidth": "40px", "aTargets": [ 3 ] },
{ "sWidth": "109px", "aTargets": [ 4 ] },
],
"oScroller": {
"fnMeasure": false
},
"fnInitComplete": function(oSettings, json) {
$(form.form+' .dataTables_scrollBody').css('height', searchResultsHeight);
},
"oLanguage": {
"sEmptyTable": '<bean:message key="searchresults.no_info"/>'
}
});
nScrollHeadInner.style.width = "100%"; /* will be overwritten */
"aoColumnDefs": [ {
"aTargets": ["_all"],
"bUseRendered": false
} ]
console.log( a, b );
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.