From 5b5342de6f6974698e493f90770ef2acebe0ecb6 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Wed, 7 Dec 2016 15:02:18 +0100 Subject: [PATCH] make first column fixed --- app/assets/javascripts/samples/sample_datatable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/samples/sample_datatable.js b/app/assets/javascripts/samples/sample_datatable.js index c9bdcb220..c77fc3e4a 100644 --- a/app/assets/javascripts/samples/sample_datatable.js +++ b/app/assets/javascripts/samples/sample_datatable.js @@ -25,7 +25,8 @@ table = $("#samples").DataTable({ type: "POST" }, colReorder: { - realtime: false // Enable reordering + realtime: false, // Enable reordering + fixedColumnsLeft: 1 }, columnDefs: [{ targets: 0,