Home Reference Source Test
import Model from 'data-scheme/source/Model.js'
public class | source

Model

Extends:

Map → Model

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public
public

observe(keyHandler: Object)

public

set(key: *, value: *): Model

public

unobserve(keyHandler: Object)

public

Public Constructors

public constructor(data: Object) source

Params:

NameTypeAttributeDescription
data Object
  • optional
  • default: {}

Public Members

public [model_observer]: {} source

Public Methods

public forEach(callback: ModelValueHandler) source

Params:

NameTypeAttributeDescription
callback ModelValueHandler

Test:

public observe(keyHandler: Object) source

Params:

NameTypeAttributeDescription
keyHandler Object

Keys for Property names, Values for ValueChangedHandler

Test:

public set(key: *, value: *): Model source

Params:

NameTypeAttributeDescription
key *
value *

Return:

Model

Test:

public unobserve(keyHandler: Object) source

Params:

NameTypeAttributeDescription
keyHandler Object

Keys for Property names, Values for ValueChangedHandler

public valueOf(): Object source

Return:

Object