Home Reference Source
import DECIMAL from 'observabubble/props/Decimal.js'
public class | source

DECIMAL

Extends:

PropEventsProp → DECIMAL

The Observable DECIMAL Class

Constructor Summary

Public Constructor
public

constructor(value: Boolean, options: Object)

Method Summary

Public Methods
public

parse(value: *): *

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

From class Prop
public static

isProp: *

public

name: *

public

value: *

public

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

public

equals(data: *): *

public

format(): *

public

get(): *

public

parse(value: *): *

public

toJSON(): *

public

toString(): *

public

valueOf(): *

private

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

Public Constructors

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

Override:

Prop#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 Methods

public parse(value: *): * source

Override:

Prop#parse

Params:

NameTypeAttributeDescription
value *

Return:

*