[BUG] Nested panel options cannot have default value set

As far as I’ve found, nested panel options do not like to have default values. Can someone verify this on their end, and let me know if they obtain the same result, or if I’m putting in the default values incorrectly? Thanks!

Ref: Panel options subcategories


export const plugin = new PanelPlugin<PsyOptions>(PsyPanel).setPanelOptions((builder, context) => {
  return builder.addTextInput({
      name: 'Not Nested',
      path: 'a',
      defaultValue: 'Hello!'
      path: 'nestor',
      build(subbuilder, subcontext) {
        return subbuilder.addTextInput({
            name: 'Nested',
            path: 'b',
            defaultValue: 'World!',

Screenshot 2023-11-16 at 1.46.10 PM

Hi @ventura can you open an issue in GitHub - grafana/grafana: The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more. ?

@academo - created here: Nested panel options cannot have default value · Issue #78362 · grafana/grafana · GitHub

Let’s move all further conversation there. Thanks!

1 Like