Commit bb3b8ebf by Damien Moulard

allow horizontal scrolling so columns don't overlap

parent d15becc6
...@@ -300,7 +300,7 @@ function prepare_datatable_columns() { ...@@ -300,7 +300,7 @@ function prepare_datatable_columns() {
{ {
data: "default_code", data: "default_code",
title: "Référence Produit", title: "Référence Produit",
width: "10%", width: "8%",
render: function (data) { render: function (data) {
return (data === false) ? "" : data; return (data === false) ? "" : data;
} }
...@@ -312,12 +312,12 @@ function prepare_datatable_columns() { ...@@ -312,12 +312,12 @@ function prepare_datatable_columns() {
{ {
data: "qty_available", data: "qty_available",
title: "Stock", title: "Stock",
width: "5%" width: "4%"
}, },
{ {
data: "incoming_qty", data: "incoming_qty",
title: "Quantité entrante", title: "Quantité entrante",
width: "5%" width: "4%"
} }
]; ];
...@@ -344,7 +344,7 @@ function prepare_datatable_columns() { ...@@ -344,7 +344,7 @@ function prepare_datatable_columns() {
columns.push({ columns.push({
data: "uom", data: "uom",
title: "UDM", title: "UDM",
width: "5%" width: "4%"
}); });
return columns; return columns;
...@@ -381,6 +381,7 @@ function display_products() { ...@@ -381,6 +381,7 @@ function display_products() {
stripeClasses: [], // Remove datatable cells coloring stripeClasses: [], // Remove datatable cells coloring
orderClasses: false, orderClasses: false,
iDisplayLength: 100, iDisplayLength: 100,
scrollX: true,
language: {url : '/static/js/datatables/french.json'}, language: {url : '/static/js/datatables/french.json'},
createdRow: function(row) { createdRow: function(row) {
for (const cell_node of row.cells) { for (const cell_node of row.cells) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment