Forum Archive

more tableview questions.

polymerchm

I have "ported" my flashcard trainer from Hydrogen to the ui. Love it. Another tableview question. Can I programmatically choose what "row' is at the top of a display. For eample, if my items are in alpbetiical order and I want to force the display to show items starting with those starting beginning with the letter "C", how do I do that?

ccc

The answer might lie in embedding your table in a ui.ScrollView but I am not sure.

omz

ui.TableView actually inherits from ui.ScrollView, so you can use the ui.ScrollView attribute content_offset to scroll to a specific position with a ui.TableView as well.