global-context/integration/widget-controls/widget-controls-factory.ts

Description

Hierarchical configuration for widget control visibility and behavior across different contexts.

This interface defines control settings organized by:

  • Display mode (dashboard/config/viewAndConfig)
  • Refresh option (live/history)
  • View context (inline/configuration)

Each level can specify which controls to show/hide and their default link states to the global context. The structure mirrors how widgets are rendered in different scenarios.

Example :
const settings: WidgetControlSettings = {
  dashboard: {
    live: {
      inline: { showRefresh: true, showRefreshInterval: false }
    }
  },
  defaultLinks: {
    dashboard: {
      live: { dateTimeContext: true, aggregation: true }
    }
  }
};

results matching ""

    No results matching ""