Constructor Summary
Public Constructor | ||
public |
constructor(defaultData: object) Constructor. |
Member Summary
Public Members | ||
public |
[field]: * |
Method Summary
Public Methods | ||
public |
Add value to field-value. |
|
public |
destroy() Destroy me. |
|
public |
Toggle boolean field-value |
|
public |
Update the pairs of field-value. |
Private Methods | ||
private |
_updateField(field: string, value: Any) Update field with value. |
Inherited Summary
From class Core | ||
public |
Add handler or listener for saying message |
|
public |
Cast a message to the listeners |
|
public |
unescapeHtml(escaped: String): String Unescape HTML |
|
public |
unlistened(name: string, -: Function) Remove handler or listener |
|
private |
_callR(args: *, target: *, method: *, methodOwner: *) |
|
private |
_isFn(f: *): * |
|
private |
_isStr(v: *): * |
|
private |
_listened(name: *, handler: *) |
|
private |
_privates(): {"_F_obs": *} Return non-enumerable attribute definitions. |
|
private |
_say(targetName: *, name: *, ctx: *) |
Public Constructors
public constructor(defaultData: object) source
Constructor.
Override:
Core#constructorParams:
Name | Type | Attribute | Description |
defaultData | object |
|
default data |
Public Members
public [field]: * source
Public Methods
public add(field: string, value: Any) source
Add value to field-value.
Params:
Name | Type | Attribute | Description |
field | string | adding field name |
|
value | Any | adding value |
public toggle(field: string) source
Toggle boolean field-value
Params:
Name | Type | Attribute | Description |
field | string | toggling field name |
public update(pairs: Object) source
Update the pairs of field-value.
Params:
Name | Type | Attribute | Description |
pairs | Object | updating target pairs |