Skip to main content
A newer version of this page is available. .

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: any

Property Value

Type Description
any

The maximum date value in the range.

Minimum Property

Specifies the start date in the range.

Declaration

Minimum: any

Property Value

Type Description
any

The minimum date value in the range.