A2v10 Platform documentation
UK


Templates

A Template is a JavaScript object that defines the behavior of a data model. General structure of the template:

	

Object properties of the Template

Name Type Description
options options An object describing the options for configuring the template.
defaults defaults An object describing the model initialization rules.
properties properties An object describing additional properties to be added to the model.
validators validators An object describing the validation rules for model items.
events events An object describing event handlers for the model.
commands commands An object describing commands for the model.
delegates delegates An object describing the delegates (callback functions) required for the model to work.