Skip to content

Commit

Permalink
limit standard options to units and decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
KatrinaTurner committed Aug 12, 2022
1 parent 6659bdd commit 99c7b07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ const buildStandardOptions = (): any => {

export const plugin = new PanelPlugin<SimpleOptions>(SimplePanel)
.useFieldConfig({
disableStandardOptions: [
FieldConfigProperty.NoValue,
FieldConfigProperty.Max,
FieldConfigProperty.Min,
FieldConfigProperty.DisplayName,
FieldConfigProperty.Thresholds,
FieldConfigProperty.Color
],
standardOptions: buildStandardOptions(),
})
.setPanelOptions((builder) => {
Expand Down

0 comments on commit 99c7b07

Please sign in to comment.