www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Controller.SceneController.setWidgetModel(widget, model)

Mojo.Controller.SceneController.setWidgetModel(widget, model)

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

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)