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 :-)
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
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(); }Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
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
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)