dudapiotr / ZfTable

*Not supported*ZfTable 3.1. Awesome ZF2 table / grid (and much much more) generator with huge possibilities of decorating and conditioning. Integrated with DataTables, Doctrine 2, Bootstrap 2.0 and 3.0.
http://dudapiotrek.laohost.net/
MIT License
75 stars 59 forks source link

Suggestion to make ZfTable more responsive #93

Open yannickvid opened 8 years ago

yannickvid commented 8 years ago

Hi,

First of all, thank you for this awesome module!

Today I was trying absolutely to make ZfTable more responsive (hide columns on smaller devices).

I easily managed to add the following on my table configuration:

$this->getHeader('email')->addClass('hidden-xs');
$this->getHeader('email')->getCell()->addAttr('class', 'hidden-xs');

However as there is no getter available for the filters of the columns you cannot fully hide the column.

What would be the best way to get the td object created in the function renderFilters() from ZfTable\Render.php ?

A temporary fix could be to add an id to the td to be able to add some CSS?

Thanks,

Yannick