API - AbstractRow

Extends ObjectManager

The AbstractRow class can be used when not using a table, and thus can contain your own functions.

Methods

This method will clone and reset the object, after this is done it will be returned.

Returns AbstractRow: The newly created AbstractRow

This is a private function to allow for config extending This method takes two parameters the first is the original config and the second will be appeneded to this one.

Parameters
Name Type Description
target Object The config object.
source Object The object to extend the config object.

Return the command chain to run behaviors.

Returns CommandChain: CommandChain object.

Use this function to acquire a variable from config.js

Parameters
Name Type Description
key String Key to specify the config to return

Returns Object: The requested config value.

This method will return only the data from the Row object

Returns Promise: The data of the Row object

Use this function to acquire the identifier object

Returns ObjectIdentifier: Identifier object.

This is a alias of ObjectManager.getObject to use in the "this" context.

Parameters
Name Type Description
identifier String Identifier of the object to load
config Object|null Config to push to the object

Returns Promise: call ".then" to use the object when ready.

Every object called through getObject will go through this function. This will set the identifier and adds the behaviors (if any).

Parameters
Name Type Description
config Object Object with config values

Returns Promise: call ".then" to use the object when ready.

This method will check if the row object is new or not

Returns Boolean: True if new, False if exists

This is the handler which will try to mixin functions from another object.

Parameters
Name Type Description
object Object The object to mix into the current object.

This method will set the data in the Row object, when there is data present it will add data to the modified array and set this in the data as well.

Parameters
Name Type Description
data Object The data to set on the object

Returns Promise: Returns the Row object with filled data