Currently, tview.List is based around text and secondary text.
But if you need to store a list of items and keep their representation valid - you have to keep a list of some items somewhere else, and keep track of their order. What about adding a CustomList (call it how you want), where instead of using plain text for items, use an interface like
Currently, tview.List is based around text and secondary text. But if you need to store a list of items and keep their representation valid - you have to keep a list of some items somewhere else, and keep track of their order. What about adding a CustomList (call it how you want), where instead of using plain text for items, use an interface like
That would make maintaining both data and it's view much easier! (I implemented it in my fork of your lib, can show you if you'd like to)