Kumaran Masilamani
05/28/2021, 8:57 AMoptions = TabulatorOptions(
layout = Layout.FITCOLUMNS,
responsiveLayout = ResponsiveLayout.COLLAPSE,.....
Robert Jaros
05/28/2021, 8:59 AMRobert Jaros
05/28/2021, 9:00 AMRobert Jaros
05/28/2021, 9:02 AMRobert Jaros
05/28/2021, 9:02 AMKumaran Masilamani
05/28/2021, 9:03 AMRobert Jaros
05/28/2021, 9:09 AMRobert Jaros
05/28/2021, 9:10 AMKumaran Masilamani
05/28/2021, 9:10 AMKumaran Masilamani
05/28/2021, 9:10 AMvar table = new Tabulator("#example-table", {
height:"311px",
layout:"fitDataFill",
responsiveLayout:"collapse",
columns:[
{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false},
{title:"Name", field:"name", width:200, responsive:0},
{title:"Progress", field:"progress", hozAlign:"right", sorter:"number", width:150},
{title:"Gender", field:"gender", width:150, responsive:2},
{title:"Rating", field:"rating", hozAlign:"center", width:150},
{title:"Favourite Color", field:"col", width:150},
{title:"Date Of Birth", field:"dob", hozAlign:"center", sorter:"date", width:150},
{title:"Driver", field:"car", hozAlign:"center", width:150},
],
});
Kumaran Masilamani
05/28/2021, 9:10 AMKumaran Masilamani
05/28/2021, 9:10 AMKumaran Masilamani
05/28/2021, 9:22 AM{formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false},
Kumaran Masilamani
05/28/2021, 9:52 AMresponsiveLayoutCollapseUseFormatters = true,
responsiveLayoutCollapseStartOpen = true,
responsiveLayout = ResponsiveLayout.COLLAPSE,
But it seems it is buggy, as I have tabulators in different tabs, when I switch tabs, it throws errors in console:
Uncaught TypeError: onRendered is not a function
I will leave it non-responsive for now, until I get any other react component for adding dynamic rows for my requirementRobert Jaros
05/28/2021, 9:56 AMKumaran Masilamani
05/28/2021, 9:58 AM