TK.Ranges

Ranges provides multiple TK.Range for a widget. They can be used for building coordinate systems.

Source:

Methods

add_range(from, name) → {TK.Range}

Add a new range. If name is set and this.options[name] exists, is an object and from is an object, too, both are merged before a range is created.

Parameters:
Name Type Description
from function | Object

A function returning a TK.Range instance or an object containing options for a new TK.Range.

name string

Designator of the new #TK.Range. If a name is set a new set function is added to the item to set the options of the range. Use the set function like this: this.set("name", {key: value});

Source:
Fires:
Returns:

The new range.

Type
TK.Range

Events

rangeadded

Gets fired when a new range is added

Parameters:
Name Type Description
range TK.Range

The TK.Range that was added.

Source: