- Source:
Ranges provides multiple Ranges for a widget. They can be used for building coordinate systems.
Methods
addRange(from, name) → {Range}
- Source:
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 Range instance or an object containing options for a new Range. |
name |
string | Designator of the 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:
|
Fires:
Returns:
The new Range.
- Type
- Range
Events
rangeadded
- Source:
Gets fired when a new range is added
Parameters:
Name | Type | Description |
---|---|---|
range |
Range | The Range that was added. |