Class RVDashboard

The class representing a Dashboard model. To get an instance of this class you could use:

Hierarchy

  • RVDashboard

Index

Properties

onDateFilterChanged

onDateFilterChanged: null | function = null

This event is triggered when the date filter was modified.

onFiltersChanged

onFiltersChanged: null | function = null

This event is triggered when the list of filters has changed because a filter was added or removed.

onHasPendingChangesChanged

onHasPendingChangesChanged: null | function = null

This event is triggered when the hasPendingChanges flag has changed its value.

onTitleChanged

onTitleChanged: null | function = null

This event is triggered when the the title of the dashboard is changed was added/removed or updated.

onVisualizationsChanged

onVisualizationsChanged: null | function = null

This event is triggered when the list of visualizations has changed because a visualization was added/removed or updated.

Accessors

dashboardId

  • get dashboardId(): string
  • The id of the dashboard.

    Returns string

dateFilter

  • The date global filter configured in this dashboard, null if no date filter is configured. Setting the date filter is only supported when the dashboard has a date filter defined. You can change the currently selected value of a date filter. En error is thrown if you try to set a filter to a dashboard which does not have one defined or setting it to null if there is date filter in the dashboard.

    Returns null | RVDateDashboardFilter

  • The date global filter configured in this dashboard, null if no date filter is configured. Setting the date filter is only supported when the dashboard has a date filter defined. You can change the currently selected value of a date filter. En error is thrown if you try to set a filter to a dashboard which does not have one defined or setting it to null if there is date filter in the dashboard.

    Parameters

    Returns void

filters

  • The list of filters in the dashboard. Dashboard filters can be used to apply filters to multiple widgets at the same time.

    Returns FiltersArray

hasPendingChanges

  • get hasPendingChanges(): boolean
  • Returns true if the user made changes to the dashboard that were not saved yet.

    Returns boolean

title

  • get title(): string
  • The name or title of the dashboard.

    Returns string

visualizations

  • get visualizations(): readonly RVVisualization[]
  • The list of visualizations in the dashboard.

    Returns readonly RVVisualization[]

Methods

Static loadDashboard

  • loadDashboard(dashboardId: string, onSuccess: function, onError: function): void
  • Loads the dashboard

    Parameters

    • dashboardId: string
    • onSuccess: function
    • onError: function
        • (msg: string): void
        • Parameters

          • msg: string

          Returns void

    Returns void

Static loadDashboardAsync

  • loadDashboardAsync(dashboardId: string): Promise<RVDashboard>
  • Loads the dashboard asynchronously

    Parameters

    • dashboardId: string

    Returns Promise<RVDashboard>

Static loadDashboardFromContainer

  • loadDashboardFromContainer(blob: Blob, onSuccess: function, onError: function): void
  • Loads the dashboard from container

    Parameters

    • blob: Blob
    • onSuccess: function
    • onError: function
        • (msg: string): void
        • Parameters

          • msg: string

          Returns void

    Returns void