romaonthego / RETableViewManager

Powerful data driven content manager for UITableView.
MIT License
2.48k stars 432 forks source link

How to get callback for each text entered in RETextItem so that we can process on that text #258

Closed ProAjit closed 8 years ago

ProAjit commented 8 years ago

Hi, Thanks for wonderful library. I have one quick query. I searched a lot but couldn't find the solution to allow only certain characters in my RETextItem, like we achieve it in delegate shouldChangeCharactersInRange for UITextField. How we can get the callback for each text entered in RETextItem ? Please suggest any documentation available for that or any code snippet. Any help is appreciated.

aabiabdallah commented 8 years ago

You can use the following methods:

Example: myTextItem.onChange = ^(RETextItem* item) { NSLog(@"Value: %@", item.value); }

ProAjit commented 8 years ago

Thank you @aabiabdallah !! This worked..!!