-
I have rewritten a cli application of mine to take advantage of the bubbletea framework and to learn it. I am having an issue implementing the multi selection of list items. I found a few examples and been able to make a simple list with multi selection but if using the lists bubble and a struct if I add a bool value to my struct I can't work out a way to toggle it from the list view. I have added some code snippets below if anyone has a better idea I am all ears. Basically I make a struct.
Then I have an initialModel.
All of this works fine and so does my views and if I manually go and hard code the But how could I change the Ways tried. From listUpdate func.
I also tried passing the item to a func and doing the same things basically and got basically the same errors. Next idea and the way I am guessing it is done. Again via the listUpdate func. I know I am missing something and its probably obvious but any pointers in the write direction or a link to something similar would be greatly appreciated. EDIT ANSWERED: Sorry for the trouble. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Glad you were able to figure it out! If there's anything that could be clarified, please don't hesitate to let us know |
Beta Was this translation helpful? Give feedback.
Glad you were able to figure it out! If there's anything that could be clarified, please don't hesitate to let us know