Make the base class a directive so we can use Angular functionality and sub-classes can be

Component

Hierarchy (view full)

Implements

  • OnInit
  • OnDestroy

Constructors

Properties

Error: EventEmitter<Error> = ...

Subclasses can emit anytime an error occurs.

Interaction: EventEmitter<any> = ...

Subclasses can emit this event anytime they want to communicate with the container to let it know that something has happened of significance.

OpenEntityRecord: EventEmitter<{
    EntityName: string;
    RecordPKey: CompositeKey;
}> = ...

Subclasses can emit this event anytime they want to open a record within a particular entity. The container should handle this event and open the record.

Type declaration

Provider: null | IMetadataProvider

If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes. If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.

UserStateChanged: EventEmitter<any> = ...

Subclasses should emit this event anytime their internal state changes in a way that they'd like to persist.

_config: null | DashboardConfig = null
_visible: boolean = false
ɵdir: unknown
ɵfac: unknown

Accessors

  • get ProviderToUse(): IMetadataProvider
  • Returns either the default Metadata provider or the one specified in the Provider property, if it was specified

    Returns IMetadataProvider

  • get RunQueryToUse(): IRunQueryProvider
  • Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified

    Returns IRunQueryProvider

  • get RunReportToUse(): IRunReportProvider
  • Returns either the default RunReport provider or the one specified in the Provider property, if it was specified

    Returns IRunReportProvider

  • get RunViewToUse(): IRunViewProvider
  • Returns either the default RunView provider or the one specified in the Provider property, if it was specified

    Returns IRunViewProvider

Methods

  • This method can be used by a container to let the dashboard know that it is being opened/closed. Base class just sets a flag.

    Parameters

    • visible: boolean

    Returns void

  • Subclasses can override this method to perform any initialization they need. This method only runs once when the dashboard is created.

    Returns void

  • Subclasses should override this method to load their data. This method is called when the dashboard is created and when Refresh() is called.

    Returns void