1) How can I automatically shrink the table to fit with the columns to remove the excess whitespace?
2) The example below shows the ID column having extra whitespace. How can I compress it like the actions column by default without hard-coding the column width settings?
example for both: https://screenshots.firefox.com/FbYFw12MH9GFTxEc/localhost
example of outcome: https://screenshots.firefox.com/IQDoFcGXMSamofA9/phpdatagrid.com
The goal is to create a compressed table.
Hi,
1) The need to set shrinkToFit property to false (which is also a default behavior unless set to true)
$opt[“shrinkToFit”] = false;
$g->set_options($opt);
2) By default, all columns share equal width available in grid. So if you want to shrink column, you must specify width. In Actions column it is done internally inside library.