DataObject

most-data/data-classes. DataObject

Represents a data object associated with a data model. DataObject class may be inherited by other classes that are defined as DataObjectClass of a data model.

Constructor

new DataObject(typeopt, objopt)

Parameters:
Name Type Attributes Description
type string <optional>
obj * <optional>
The object that is going to be extended
Properties:
Name Type Description
context DataContext An instance of DataContext class associated with this object.
$$type string A string that represents the type of this object.
$$model DataModel The data model which is associated with this object.
$$id * Gets the identifier of this object based on the associated model's primary key
selectors * An object that represents a collection of selectors associated with this data object e.g is(':new'), is(':valid'), is(':enabled') etc
Source:

Extends

  • EventEmitter2