Home Reference Source
public class | source

Prop

Extends:

PropEvents → Prop

Indirect Subclass:

UserRef

The Observable Prop Class

Static Member Summary

Static Public Members
public static

isProp: *

Constructor Summary

Public Constructor
public

constructor(value: any, options: Object)

Member Summary

Public Members
public

name: *

public

value: *

Method Summary

Public Methods
public

[Symbol.toPrimitive](hint: *): *

public

equals(data: *): *

public

format(): *

public

get(): *

public

parse(value: *): *

public

toJSON(): *

public

toString(): *

public

valueOf(): *

Private Methods
private

_set(value: *, objectPattern1: {"preventEvent": *})

Inherited Summary

From class PropEvents
public
public
public

parent: *

private

_event: {}

public

off(eventName: Event, callback: Function)

Unbinds an event listener

public

on(eventName: Event, callback: Function)

Bind an event listener

private

_bubble(eventName: Event, target: Prop)

Calls event bubbling on the parent Observable

private

async _processEvent(eventName: Event, target: Prop, additional: Object)

Calls the listeners for the Event triggered

Static Public Members

public static isProp: * source

Public Constructors

public constructor(value: any, options: Object) source

Override:

PropEvents#constructor

Params:

NameTypeAttributeDescription
value any

The initial value of the property

options Object
options.parent OBJECT

The Parent Object to which this Property is a member of

options.name String

The Name/key in the Parent Object to which this Property is assigned

Public Members

public name: * source

public value: * source

Public Methods

public [Symbol.toPrimitive](hint: *): * source

Params:

NameTypeAttributeDescription
hint *

Return:

*

public equals(data: *): * source

Params:

NameTypeAttributeDescription
data *

Return:

*

public format(): * source

Return:

*

public get(): * source

Return:

*

public parse(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public toJSON(): * source

Return:

*

public toString(): * source

Return:

*

public valueOf(): * source

Return:

*

Private Methods

private _set(value: *, objectPattern1: {"preventEvent": *}) source

Params:

NameTypeAttributeDescription
value *
objectPattern1 {"preventEvent": *}
  • optional
  • default: {}