Skip to content

Latest commit

 

History

History
207 lines (116 loc) · 4.03 KB

IntuifaceElement.md

File metadata and controls

207 lines (116 loc) · 4.03 KB

Class: IntuifaceElement

An IntuifaceElement represents the base of any kind of element that compose an Intuiface experience: asset, collection, interface asset, layer, scene, experience...

All this elements extends IntuifaceElement and use the appropriate decorator to make it usable in the experience, such as @Asset or @Collection.

Hierarchy

Table of contents

Properties

Methods

Properties

container

container: ElementContainer

Container of this element


parent

parent: IntuifaceElement

Parent of this element.


name

name: string = ''

Name of the element.

Methods

notifyPropertyChanged

notifyPropertyChanged(propertyKey, value): void

Function to call when a property in the element changed to notify listeners

Parameters

Name Type
propertyKey string
value any

Returns

void

Inherited from

Watchable.notifyPropertyChanged


subscribeToPropertiesChanges

subscribeToPropertiesChanges(listener): void

Function to subscribe to properties changes of the element

Parameters

Name Type
listener PropertiesListener

Returns

void

Inherited from

Watchable.subscribeToPropertiesChanges


unsubscribeFromPropertiesChanges

unsubscribeFromPropertiesChanges(listener): void

function to unsubscribe from properties changes of the element

Parameters

Name Type
listener PropertiesListener

Returns

void

Inherited from

Watchable.unsubscribeFromPropertiesChanges


subscribeToPropertyChanged

subscribeToPropertyChanged(property, listener): void

function to subscribe to one property changed

Parameters

Name Type
property string
listener PropertyListener

Returns

void

Inherited from

Watchable.subscribeToPropertyChanged


unsubscribeFromPropertyChanged

unsubscribeFromPropertyChanged(property, listener): void

function to unsubscribe from one property changed

Parameters

Name Type
property string
listener PropertyListener

Returns

void

Inherited from

Watchable.unsubscribeFromPropertyChanged


initialize

initialize(configuration?): void

Initialize default value of each property.

Parameters

Name Type Description
configuration? any : configuration

Returns

void


dispose

dispose(): void

Dispose the element.

Returns

void

Overrides

Watchable.dispose

Help

Found a problem, a bug? Or need some help?
Please do not create an issue in Github! Ask us via our Support page : https://support.intuiface.com/