EnvironmentList
Summary
The list of available environments. (Don't create your own instances - use Sketch.environments)
Instance Properties
Name | Return Type | Description |
---|---|---|
last | Environment Read-only | Returns the last environment |
current | Environment Read/Write | Returns the current environment |
this[index] | Environment Read-only | Returns the environment at the given index |
count | number Read-only | The number of available environments |
Instance Methods
environmentList:ByName(name)
Gets an Environment by name
Returns: Environment (The environment, or nil if no environment has that name)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
name | string | The name of the environment to get |
Example
Last updated