getOptionSuggestions.ts 512 B

1234567891011121314151617
  1. import { VisualizationSuggestion, PanelModel, PanelPlugin, PanelData } from '@grafana/data';
  2. export function getOptionSuggestions(
  3. plugin: PanelPlugin,
  4. panel: PanelModel,
  5. data?: PanelData
  6. ): VisualizationSuggestion[] {
  7. // const supplier = plugin.getSuggestionsSupplier();
  8. // if (supplier && supplier.getOptionSuggestions) {
  9. // const builder = new VisualizationSuggestionsBuilder(data, panel);
  10. // supplier.getOptionSuggestions(builder);
  11. // return builder.getList();
  12. // }
  13. return [];
  14. }