简体   繁体   中英

WiceGrid default filter on column

I am using the WiceGrid gem (which is awesome!), however I am stuck on something relatively simple and can't seem to find anything in the documentation.

I want to have a default filter on a column. eg. A boolean column defined can have filtering options for Yes and No, but on first load the default filter might be set to No.

You can do this by setting the conditions in the controller. Here is the link: http://wicegrid.herokuapp.com/basics6

In the controller, there is something looks like this:

@grid = initialize_grid(

conditions: { you_filter: no }

)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM