Breakpoints at responsive
Breakpoints at responsive
I have a code for breakpoints in responsive view
var oTable = $('#tblwykazy').DataTable({
responsive: {
breakpoints: [
{ name: 'desktop', width: Infinity },
{ name: 'tablet', width: 1024 },
{ name: 'fablet', width: 768 },
{ name: 'phone', width: 320 }
]
},
I can't force this width - i have 26 columns so only on 1600px+ screens width all columns are visible.
Is there any idea to let it work there by JS or maybe by another option? I have many tables so CSS is not an option.
I also need to have an option to get 100% width in breakpoints for first column - i want for desktop to show all columns and for all screens above to show one column. When i use it there it gaves me error for unexpected string after "%"
Replies
Let what work? I'm not clear on what your question is I'm sorry to say.
Set all the other columns to have a
columns.className
ofnot-desktop
. See the docs here for more information about special class names.Allan
I got it. Now it works for 26 columns. Now i'm changing file with 7 columns and LP at start and i want to show 1st(LP) and 2nd column or just 2nd but it always hide second one