DataModelView

DataModelView

new DataModelView()

Source:

Methods

cast(obj) → {Array|*}

Casts an object or an array of objects based on view's field collection.
Parameters:
Name Type Description
obj Array | *
Source:
Returns:
Type
Array | *

DataModelView

DataModelView

Constructor

new DataModelView(model)

Parameters:
Name Type Description
model DataModel The parent model associated with this view
Properties:
Name Type Description
title string Gets or sets the title of the current view
name string Gets or sets the name of the current data view
public boolean Gets or sets a boolean that indicates whether this data view is public or not.The default value is true.
sealed boolean Gets or sets a boolean that indicates whether this data view is sealed or not. The default value is true.
filter string | QueryExpression | * Gets or sets an open data formatted filter string or a query expression object associated with this view.
order string | * Gets or sets an open data formatted order string or an order expression object associated with this view.
group string | * Gets or sets an open data formatted group string or a group expression object associated with this view.
fields Array Gets or sets the collection of data view's fields
model DataModel Gets a DataModel instance that represents the parent model of the current view
attributes Array A readonly collection of DataField instances
Source:

Methods

cast(obj) → {Array|*}

Casts an object or an array of objects based on view's field collection.
Parameters:
Name Type Description
obj Array | *
Source:
Returns:
Type
Array | *