Skip to content

Commit

Permalink
Add basic documentation around VENTokenFieldDataSource in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayanonagon committed Jun 20, 2014
1 parent caa6178 commit cad1586
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ This protocol notifies you when things happen in the token field that you might
* ```tokenField:didChangeText:``` is called when a user changes the text in the input field.
* ```tokenFieldDidBeginEditing:``` is called when the input field becomes first responder.

### VENTokenFieldDataSource
This protocol allows you to provide info about what you want to present in the token field.

Implement...
* ```tokenField:titleForTokenAtIndex:``` to specify what the title for the token at a particular index should be.
* ```numberOfTokensInTokenField:``` to specify how many tokens you have.
* ```tokenFieldCollapsedText:``` to specify what you want the token field shoud say in the collapsed state.

Contributing
------------

Expand Down

0 comments on commit cad1586

Please sign in to comment.