Open guidoenr opened 1 year ago
The list's Item
interface defines a FilterValue
function that you can implement to allow for filtering custom structs and elements.
I had this issue when some nil values got into the array I passed to the list, thinking it was a proper item.
Hey guys, how are you? hope you're doing good :)
We are using your model to display an application to handle tests jobs, which are listed in the dash view in the following way:
When i type
/
to enter a filter value and then fill it with some text:I got the following error:
Checking the stacktrace seems to be an error at the moment of playing with the list.
I would like to know if there are some examples of how to filter structs.
for example:
(filtering by their name)
And I think this could be the cause of the error, maybe the Filter interface implementation is not working.
Searched at https://github.com/charmbracelet/bubbletea/tree/master/examples and also tried https://github.com/charmbracelet/bubbletea/issues/155 but didn't work