Skip to content
Snippets Groups Projects
Commit 5e979b18 authored by Carlos Vega's avatar Carlos Vega
Browse files

added default dom settings for datatable

parent b8d3c86c
No related branches found
No related tags found
1 merge request!178Feature/import data pdp
......@@ -243,7 +243,7 @@ function createTable(params) {
var voucher_types_url = params.voucher_types_url;
var voucher_partner_url = params.voucher_partner_url;
var columnsDefinition = params.columns;
var dom_settings = params.dom_settings;
var dom_settings = params.dom_settings || 'lrtip' // show table without search box;
tableElement.appendChild(createHeader(columnsDefinition));
tableElement.appendChild(createFilter(columnsDefinition));
......@@ -378,6 +378,7 @@ function createTable(params) {
});
}
console.log(columns);
table = $('#table').DataTable({
pageLength: 25,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment