RangeFilterSelection Class

A range in the Range Filter dashboard item.

Declaration

export class RangeFilterSelection

Remarks

Use the Minimum and Maximum properties to specify the required range.

The code below shows how to apply a custom period to a Range Filter (from January, 2017 to June, 2018) when you set a dashboard state:

public btnClick() {
  var state: DashboardState = { 
    // ... 
    Items: {
      "range": {
        RangeFilterState: {
          Selection: {
            Minimum: new Date(2017, 0, 1),
            Maximum: new Date(2018, 5, 1)
          }
        }
      }
    } 
  }
  this.dashboardControl.setDashboardState(state);
}

Properties

Maximum Property

Specifies the end date in the range.

Declaration

Maximum: number | Date

Property Value

Type
number
Date

Minimum Property

Specifies the start date in the range.

Declaration

Minimum: number | Date

Property Value

Type
number
Date