From cad1586a163160467b0b3b7c2494abcd81934c6b Mon Sep 17 00:00:00 2001 From: Ayaka Nonaka Date: Fri, 20 Jun 2014 11:22:34 -0700 Subject: [PATCH] Add basic documentation around VENTokenFieldDataSource in README. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 2e64ee1..3ba88a7 100644 --- a/README.md +++ b/README.md @@ -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 ------------