Panel Plugin -> Standard Ooptions -> Color Scheme (how to display just the color scheme?)

Hello Everybody,

I am developing a panel plugin that should have a color scheme where we select a palette.
However, how to add this in my module.ts without all the standard options.
The foto below show the color palette with all standard options. This I could integrate. However, how to integrate just this in my panel plugin!

Thank you very much in advance!

Your Sincerely,
Turtles

I’m pretty sure I’ve been able to do this in previous versions:

module.ts

  .useFieldConfig({
    standardOptions: {
      [FieldConfigProperty.Color]: {},
    },
  })

… but in the latest version it seems I instead have to remove the ones I don’t want:

module.ts

  .useFieldConfig({
    disableStandardOptions: [
      FieldConfigProperty.Decimals,
      FieldConfigProperty.Unit,
      FieldConfigProperty.Min,
      FieldConfigProperty.Max,
      FieldConfigProperty.Decimals,
      FieldConfigProperty.DisplayName,
      FieldConfigProperty.NoValue,
      FieldConfigProperty.Thresholds,
      FieldConfigProperty.Mappings,
      FieldConfigProperty.Links,
    ],
  })

Let me know if any of them work for you!

1 Like

Thank you very much! It worked right straightforward!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.