Commit bb3b8ebf by Damien Moulard

allow horizontal scrolling so columns don't overlap

parent d15becc6
......@@ -300,7 +300,7 @@ function prepare_datatable_columns() {
{
data: "default_code",
title: "Référence Produit",
width: "10%",
width: "8%",
render: function (data) {
return (data === false) ? "" : data;
}
......@@ -312,12 +312,12 @@ function prepare_datatable_columns() {
{
data: "qty_available",
title: "Stock",
width: "5%"
width: "4%"
},
{
data: "incoming_qty",
title: "Quantité entrante",
width: "5%"
width: "4%"
}
];
......@@ -344,7 +344,7 @@ function prepare_datatable_columns() {
columns.push({
data: "uom",
title: "UDM",
width: "5%"
width: "4%"
});
return columns;
......@@ -381,6 +381,7 @@ function display_products() {
stripeClasses: [], // Remove datatable cells coloring
orderClasses: false,
iDisplayLength: 100,
scrollX: true,
language: {url : '/static/js/datatables/french.json'},
createdRow: function(row) {
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