简体   繁体   中英

How to add search filter in DashCode

I have a list loaded from datasource in Dashcode and I added a search field. Also I've found filterPredicate option in the list.

How to bind all things together to make the search filter the list?

Cheers!

After reviewing Apple WWDC video I've found how to bind the search:

  1. Set search predicate string to a target field in which the search will be done (eg name, description - depends on the datasource structure).
  2. Open datasources, select a list and bind filterPredicate with the predicate property of the search field.

That's it.

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