React plugin - How to build panel options based on panel data

There is any way to use in the received data (from data source) to build the panel options?
For example, create select editor based on the data and not hardcoded options.

Are you talking about building a plugin?

Out of the box, the Grafana UI does not change based on data sent from a data source.

AFAIK you’d have to build a custom options editor for this.

Here’s an example from one of my plugins:

StandardEditorProps contains a context prop that contains the query result from the data source.

Thanks, working fine!!