WjRange Class

File
wijmo.angular2.js
Module
wijmo/wijmo.angular2.gauge
Base Class
Range
Show
   

Angular 2 component for the Range control.

The wj-range component must be contained in one of the following components: WjLinearGauge , WjBulletGraph or 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.

Constructor

Properties

Methods

Events

Constructor

constructor

constructor(name?: string): Range

Initializes a new instance of the Range class.

Parameters
Inherited From
Range
Returns
Range

Properties

color

Gets or sets the color used to display this range.

Inherited From
Range
Type
string

initialized

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.

Type
EventEmitter

isInitialized

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

Type
boolean

max

Gets or sets the maximum value for this range.

Inherited From
Range
Type
number

min

Gets or sets the minimum value for this range.

Inherited From
Range
Type
number

name

Gets or sets the name of this Range.

Inherited From
Range
Type
string

thickness

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

Inherited From
Range
Type
number

wjProperty

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

Type
string

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

onPropertyChanged(e: PropertyChangedEventArgs): void

Raises the propertyChanged event.

Parameters
Inherited From
Range
Returns
void

Events

propertyChanged

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

Inherited From
Range
Arguments
PropertyChangedEventArgs