IChildOnMap

Extends IChild.

Interface for an object whose parent belongs to a particular map.

Constructor | Fields | Events | Methods

Constructor

IChildOnMap()

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

Events

Name

Description

parentchange

The parent object reference changed.

Data fields:

  • oldParent - Old parent.
  • newParent - New parent.

Inherited from IChild.

Methods

Name

Returns

Description

getParent()

IParentOnMap|null

Returns link to the parent object, or null if the parent element was not set.

setParent(parent)

IChildOnMap

Sets the parent object. If the null value is passed, the manager element will only be deleted from the current parent object.

Methods details

getParent

{IParentOnMap|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: IParentOnMap|null

Parent object.

* Mandatory parameter/option.