Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DB Filter Flexbility #27

Open
patrickheeney opened this issue Sep 24, 2013 · 0 comments
Open

DB Filter Flexbility #27

patrickheeney opened this issue Sep 24, 2013 · 0 comments

Comments

@patrickheeney
Copy link

Right now you can only add filters for columns with relations. We should expand this to include all kinds of filters. The "switchers" should be removed in favor of a boolean type filter. We should add other types to search by integers (for example a filter to show products <$XXX) and searching on text fields. Also need to include the appropriate views:

screen shot 2013-09-23 at 20 54 09

screen shot 2013-09-23 at 11 19 53 pm

Maybe the Db_FilterBehavior can have a formRender to create complex type filters using $custom_columns. Something like:

class Shop_ProductFilter extends Db_DbFilter
{
    function define_columns()
    {
        $this->define_column('price')->renderAs(frm_text);
    }

    function define_form_fields()
    {
        $this->add_form_field('price', 'left')
    }
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant