Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

IChild

Extends IEventEmitter.

Interface for an object that has a parent.

Constructor | Fields | Events | Methods

Constructor

IChild()

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

Events

NameDescription
parentchange

The parent object reference changed.

Data fields:

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

Methods

NameReturnsDescription
getParent()

Object

Returns reference to the parent object.

setParent(parent)

IChild

Sets the parent object.

Events details

parentchange

The parent object reference changed.

Data fields:

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

Methods details

getParent

{Object} getParent()

Returns reference to the parent object.

setParent

{IChild} setParent(parent)

Sets the parent object.

Returns self-reference.

Parameters:

ParameterDefault valueDescription
parent*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Object

Parent object.

* Mandatory parameter/option.