|
Post by jayme65 on Nov 29, 2019 10:05:57 GMT
A couple of questions if you don't mind 1. Is it possible to do a multi-selection of rows (with Ctrl and/or Shift)? 2. Is it possible to have rows 'hidden' (let's say that a row element has a Boolean 'show' property)? 3. Is it possible to sort rows on any of the row element property?
Thanks!
|
|
|
Post by echo17 on Nov 29, 2019 12:11:32 GMT
The EnhancedScroller is a data-driven MVC (model-view-controller) solution, which means the view is driven by the data. In short, you can do all three of the above requests by setting values in your data and then refreshing the scroller. In your cell views you can respond to the data values to set selection and highlighting. For sorting, you just have to re-sort your data and refresh the scroller, which will then reflect the new order. The EnhancedScroller does not have built-in selection or even built-in responses to events like touching. But this is very easy to do by creating a button in your cell view that responds to these events. You can then propagate the event to the controller which will update the data and refresh the scroller. The cell views can then react to the data by toggling selection, hiding, or doing anything you can imagine. The demos cover the basics very thoroughly, so you will have a good grounding on where to begin. If you are familiar with MVC design, this will be very straight-forward. If not, I would definitely recommend some brief research to get the concepts. Apple's TableView is an MVC solution, and was the inspiration for this plugin, so if you have done any UI design in Xcode this will be very familiar to you. You can check out the online demo here: link
|
|