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

FormElement as Filters #90

Open gnomium opened 8 years ago

gnomium commented 8 years ago

I'd like to be more flexible with filters and use other inputs besides Text and Select elements, For instance when you want to filter by Date you can use a Datepicker. I added the option to pass a FormElement to the renderer instead of a String or an Array.

usage would be

    'createdate' =>        array('tableAlias' => 'p', 'title' => 'createdate', 'filters' => new Element\Date('zff_createdate')),