Skip to content

tableConfig

Kechushou edited this page May 19, 2015 · 2 revisions
define([],function(){
	var config = {};
        config.sDom='<"top"lfi>rt<"bottom"ip<"clear">';
        config.bProcessing= true;
        config.iDisplayLength= 50;
        config.sPaginationType= "full_numbers";
        config.aaSorting= [[0,"desc"]];
        config.sScrollX= "100%";
	config.sScrollXInner= "101%";
	config.bScrollCollapse= true;
        config.columnWidths = [];
        config.sDom= '<"top"lf<"clear">ip<"clear">>rt<"bottom"ip<"clear">';
        config.fnDrawCallback = function(oSettings) {
            // hide the bottom add button if the number of records displayed is less than 15 
            if (oSettings._iDisplayEnd % oSettings._iDisplayLength >= 15) {
                $('a.btmAdd').show();
            } else {
                $('a.btmAdd').hide();
            }
        };
	return config;
});
Clone this wiki locally