Closed ysl0628 closed 3 months ago
@ysl0628 that won't work.
To implement a custom variable value selector / change, view the how the default implementation works: https://github.com/grafana/scenes/blob/main/packages/scenes/src/variables/components/VariableValueSelectors.tsx#L40
I am using sceneReactObject as a sceneFlexItem, where the component of sceneReactObject extends the Select component from grafana/UI.
Can I set a variable created by customVariable to sceneFlexItem and use Select's onChange to implement the variable's setState?
if there are any issues with my approach, please provide suggestions for improvement.