5.20193.637
WjRange Wijmo API Class

WjRange Class

Angular 2 component for the wijmo.gauge.Range control.

The wj-range component must be contained in one of the following components: wijmo.angular2.gauge.WjLinearGauge , wijmo.angular2.gauge.WjBulletGraph or wijmo.angular2.gauge.WjRadialGauge.

Use the wj-range component to add Range controls to your Angular 2 applications. For details about Angular 2 markup syntax, see Angular 2 Markup.

The WjRange component is derived from the Range control and inherits all its properties, events and methods.

Heirarchy

Properties

color

color: string

Gets or sets the color used to display this range.

initialized

initialized: EventEmitter<any>

This event is triggered after the component has been initialized by Angular, that is all bound properties have been assigned and child components (if any) have been initialized.

isInitialized

isInitialized: boolean

Indicates whether the component has been initialized by Angular. Changes its value from false to true right before triggering the initialized event.

max

max: number

Gets or sets the maximum value for this range.

min

min: number

Gets or sets the minimum value for this range.

name

name: string

Gets or sets the name of this Range.

thickness

thickness: number

Gets or sets the thickness of this range as a percentage of the parent gauge's thickness.

wjProperty

wjProperty: string

Gets or sets a name of a property that this component is assigned to. Default value is 'ranges'.

Methods

created

  • created(): void
  • If you create a custom component inherited from a Wijmo component, you can override this method and perform necessary initializations that you usually do in a class constructor. This method is called in the last line of a Wijmo component constructor and allows you to not declare your custom component's constructor at all, thus preventing you from a necessity to maintain constructor parameters and keep them in synch with Wijmo component's constructor parameters.

    Returns void

onPropertyChanged

Events

propertyChanged

Occurs when the value of a property in this Range changes.