Sets the data model for a widget and notifies the widget of the new model.
Widget can be specified by either DOM element or ID but not widget name, as it is intended to operate on single widget only. The setup associated with the widget is not modified.
Argument | Type | Description |
---|---|---|
widget | Object | The widget whose model is to be changed |
model | Object | The new model to be applied to the widget |
0 Comments