ContactStore
Summary
ContactStore provides convenience methods for searching contacts and formatting contacts. When Contacts become editable, this store will be expanded with additional actions.
Instance Methods
searchContacts(search[options])
Search the user's contact list for the given search term. This method compares the `search` string against each Contact's `name` and `email`.
Parameters
Argument | Description |
---|---|
search | {String} A search phrase, such as `ben@n` or `Ben G` |
options | Optional {Object} If you will only be displaying a few results, you should pass a limit value. searchContacts will return as soon as `limit` matches have been found. |
Returns
Return Values |
---|
Returns an {Array} of matching {Contact} models |