companion
companion copied to clipboard
Local Variables on pages
Is this a feature relevant to companion itself, and not a specific module?
- [x] I believe this to be a feature for companion, and is not specific to a module
Is there an existing issue for this?
- [x] I have searched for similiar existing issues
Describe the feature
Local variables that are scoped to the current page and are available only to the buttons therein.
Not sure what the prefix would be. $(page: seems logical but also somewhat ambiguous.
They could be accessed via a button on the buttons side or a tab in the righthand column, which would contain the same structure as appears elsewhere:
Usecases
I make extensive use of local variables that it's almost a problem. Some pages have many local variables which all evaluate identically in the context of that single page, but on a different page all evaluate to something else. It would be convenient to have a shared, canonical value that all buttons on a page could reference without resorting to global customs.