setValue()

Sets the range value between the minimum and maximum of a specified `Range` object

Range.prototype.setValue()

The method setValue() sets the range value between the minimum and maximum of a specified Range object.

range.class.ts
public setValue(value: number): this {
  this.value = value;
  return this;
}

Parameters

value:number

The value of number type to set.

Return type

Returns

The return value is the Range instance.

Example usage

Last updated