dojox/app/utils/model (version 1.10)

Summary

model is called to create all of the models for the app, and all models for a view, it will create and call the appropriate model utility based upon the modelLoader set in the model in the config

Called for each view or for the app. For each model in the config, it will
create the model utility based upon the modelLoader and call it to create and load the model.

Usage

model(config,parent,app);
Parameter Type Description
config Object

The models section of the config for this view or for the app.

parent Object

The parent of this view or the app itself, so that models from the parent will be available to the view.

app Object
Returns:loadedModels | undefined | object

loadedModels is an object holding all of the available loaded models for this view.

Method Summary

Methods

Error in the documentation? Can’t find what you are looking for? Let us know!