IControl
Extends IChildOnMap.
Control.
Constructor | Fields | Events | Methods
Constructor
IControl([options])
Interface for a control.
Parameters:
Fields
Name | Type | Description |
---|---|---|
events | IEventManager | Event manager. Inherited from IEventEmitter. |
options | IOptionManager | Options manager. |
Name | Type | Description |
---|---|---|
events | IEventManager | Event manager. Inherited from IEventEmitter. |
options | IOptionManager | Options manager. |
Events
Name | Description |
---|---|
parentchange | The parent object reference changed. Data fields:
Inherited from IChild. |
Name | Description |
---|---|
parentchange | The parent object reference changed. Data fields:
Inherited from IChild. |
Methods
Name | Returns | Description |
---|---|---|
getParent() | IControlParent|null | Returns link to the parent object, or null if the parent element was not set. |
setParent(parent) | Sets the parent object. If the null value is passed, the manager element will only be deleted from the current parent object. |
Name | Returns | Description |
---|---|---|
getParent() | IControlParent|null | Returns link to the parent object, or null if the parent element was not set. |
setParent(parent) | Sets the parent object. If the null value is passed, the manager element will only be deleted from the current parent object. |
Fields details
options
{IOptionManager} options
Options manager.
Methods details
getParent
{IControlParent|null} getParent()
Returns link to the parent object, or null if the parent element was not set.
setParent
{IChildOnMap} setParent(parent)
Sets the parent object. If the null value is passed, the manager element will only be deleted from the current parent object.
Returns self-reference.
Parameters:
Parameter | Default value | Description |
---|---|---|
parent * | — | Type: IControlParent|null Parent object. |
Parameter | Default value | Description |
---|---|---|
parent * | — | Type: IControlParent|null Parent object. |
* Mandatory parameter/option.