Capturing value of selected ui.command() within a ui.menu() component in a form card #2109
-
I have a visualization in a form card, who's data needs to be toggled. My code is as follows:
I need to update the visulaization based on the selected value in ui.menu() i.e. IF the user selects 'Overall' I need to display the graph with over all data, and If the user selects 'Last 3 months' I need to display the graph using data f last 3 months. I am trying to do this by setting the value of the ui.command() but I'm unable to do. Is there a better way to achieve this?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I am confused. You say you want to update the visualization data based on menu item clicked, but your code tries to update the command value, not the visualization. Btw, commands cannot by accessed by name yet - #2107. |
Beta Was this translation helpful? Give feedback.
I am confused. You say you want to update the visualization data based on menu item clicked, but your code tries to update the command value, not the visualization.
Btw, commands cannot by accessed by name yet - #2107.