grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
133 stars 20 forks source link

Show empty cell in table #718

Open korinekgergely opened 4 months ago

korinekgergely commented 4 months ago

Is it possible to show an empty cell using value mapping? I want to make sure that if the incoming data is say 'null', no text is displayed in the cell. The display text input cannot be left blank. Is there a character string or other setting I can use to achieve this? Monosnap Edit panel - locations - Dashboards - Grafana 2024-05-06 16-55-42

korinekgergely commented 4 months ago

It works in the code:

.overrideMappings([
        {
          type: MappingType.RegexToText,
          options: {
            pattern: '/null/',
            result: {
              index: 0,
              text: '',
            },
          },
        }