Home Reference Source
import OBJECT from 'observabubble/props/Object.js'
public class | source

OBJECT

Extends:

PropEvents → OBJECT

Direct Subclass:

User

The Observable OBJECT Class

Constructor Summary

Public Constructor
public

constructor(value: Boolean, options: Object)

Member Summary

Public Members
public

name: *

public

schema: *

Private Members
private

_pKey: *

private

_values: {}

Method Summary

Public Methods
public

assign(values: *, objectPattern1: {"preventEvent": *})

public

buildFromSchema(schema: *)

public

toJSON(): *

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

Public Constructors

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

Override:

PropEvents#constructor

Params:

NameTypeAttributeDescription
value Boolean

The initial value of the Decimal

options Object
options.parent OBJECT

The Parent Object to which this Decimal is a member of

options.name String

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

Public Members

public name: * source

public schema: * source

Private Members

private _pKey: * source

private _values: {} source

Public Methods

public assign(values: *, objectPattern1: {"preventEvent": *}) source

Params:

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

public buildFromSchema(schema: *) source

Params:

NameTypeAttributeDescription
schema *

public toJSON(): * source

Return:

*

Private Methods

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

Params:

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