Filter on specific keys in template

103 views
Skip to first unread message

Johan

unread,
May 22, 2012, 8:20:08 PM5/22/12
to ang...@googlegroups.com
Is it possible to have a single search input and restrict searching to specific keys in the model:

In example from docs you cna search on any, name or number. Say I had another field (key) "other" and I wanted to search on everything except "other" is that possible without writing a filter function?

James Wright

unread,
May 22, 2012, 9:53:27 PM5/22/12
to ang...@googlegroups.com
It seems to me the behavior is whatever is output to the html is searched.

so if you want something searched (like meta info etc) you could put it in the data-* attribute and the filter will match it even though it isn't visible.

but I think that is the opposite of what you want...

jamey

Johan

unread,
May 25, 2012, 5:37:18 PM5/25/12
to ang...@googlegroups.com
thanks - think it will have to be a function
Reply all
Reply to author
Forward
0 new messages