Skip to content
Discussion options

You must be logged in to vote

My intuition is that I "should" rather define a reactive variable, especially if I can make the code less verbose [...] If so, how do I trigger an update to the detail pane

Textual has watch methods that will be called when when reactive attributes are modified. But you would still need to handle all the updates to your 'detail pane' - so unless I am missing something I don't think adding a reactive attribute would add much benefit here, at least from your example code?

(I would suggest getting rid of all those global variables though!)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lofidevops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants