0
deltavision created
Hi,
using core/jquery/mvc
Any best pratice og how-tos on controlling views on small viewport / mobile.
Wish to define a "compact" view of datatable - remove search fields etc. when on mobile.
I know an option is to use the mobile solution - but to avoid that :-)
2 Answer(s)
-
0
Hi @deltavision
Sorry for my late reply. The option we are using is DataTable's responsive feature, see https://datatables.net/extensions/responsive/.
I'm not sure if Datatables supports function for searching option but you can try;
searching: function(){ return !KTUtil.isMobileDevice(); }
-
0
Hi ismcagdas
I found a solution using datatables - responsivePriority. and combining it with a column that renders all other columns to one column on small devices.
Closing the case