NewPanelEdit: Minor style and description tweaks, AND PanelQueryRunner & autoMinMax (#23445)

* NewPanelEdit: Minor style and description tweaks

* Removed the worst snapshot of all time
This commit is contained in:
Torkel Ödegaard
2020-04-09 05:47:12 +02:00
committed by GitHub
parent 24b928c88d
commit d257e661cd
11 changed files with 26 additions and 280 deletions

View File

@@ -17,13 +17,14 @@ export const plugin = new PanelPlugin<BarGaugeOptions>(BarGaugePanel)
settings: {
options: displayModes,
},
defaultValue: 'lcd',
defaultValue: 'gradient',
})
.addBooleanSwitch({
path: 'showUnfilled',
name: 'Show unfilled area',
description: 'When enabled renders the unfilled region as gray',
defaultValue: true,
showIf: options => options.displayMode !== 'lcd',
});
})
.setPanelChangeHandler(sharedSingleStatPanelChangedHandler)

View File

@@ -51,6 +51,7 @@ export function addStandardDataReduceOptions(
min: 1,
max: 5000,
},
showIf: options => options.reduceOptions.values,
});
builder.addCustomEditor({