bnbs/js/result.js
//load and rend results to table-impl3-Backgrid-paginator
load and rend results to table-impl3-Backgrid-paginator
load and rend results to table - impl3 - Backgrid - paginator
function list_results_3() {
    pageableresults = new PageableResults();
    pageableresultlist = new Backgrid.Grid({
    	columns: columns,
    	collection: pageableresults,
    	className: "backgrid table table-hover"
    });
    $("#resultlist").append(pageableresultlist.render().el);
	var paginator = new Backgrid.Extension.Paginator({
	    collection: pageableresults
	});
	$("#resultlist").after(paginator.render().el);
	var filter = new Backgrid.Extension.ClientSideFilter({
  		collection: pageableresults,
  		placeholder: "Occurrence in the 1st group",
  		fields: ['a_group']
	});
	$("#resultlist").before(filter.render().el);
	$(filter.el).css({float: "right", margin: "2px"});
    pageableresults.fetch({reset: true});
}
function list_results_3 ( ) { pageableresults = new PageableResults ( ) ; pageableresultlist = new Backgrid . Grid ( { columns : columns , collection : pageableresults , className : "backgrid table table-hover" } ) ; $ ( "#resultlist" ) . append ( pageableresultlist . render ( ) . el ) ; var paginator = new Backgrid . Extension . Paginator ( { collection : pageableresults } ) ; $ ( "#resultlist" ) . after ( paginator . render ( ) . el ) ; var filter = new Backgrid . Extension . ClientSideFilter ( { collection : pageableresults , placeholder : "Occurrence in the 1st group" , fields : [ 'a_group' ] } ) ; $ ( "#resultlist" ) . before ( filter . render ( ) . el ) ; $ ( filter . el ) . css ( { float : "right" , margin : "2px" } ) ; pageableresults . fetch ( { reset : true } ) ; }
load and rend results to table-impl3-Backgrid-paginator
load and rend results to table - impl3 - Backgrid - paginator
// columns: [{ // 	name: "", // 	cell: "select-row", // 	headerCell: "select-all" // }].concat(columns),