www.webOShelp.net

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

Home Resources API Reference Mojo.Controller.SceneController.modelChanged(model, who)

Mojo.Controller.SceneController.modelChanged(model, who)

Can be called when a data model changes and a widget displaying that data needs to be updated.

Argument Type Description
model Object Model object that changed
who Object Object that changed the model.  Usually the widget object or scene assistant. Used to avoid notifying objects of their own changes to a model in the case where both the scene assistant and widget change & watch the same model.

Note: Palm states this API is still changing. Eventually, they want to provide a more structure on the datamodel side and an API that allows the app to express what about the model changed.

For example, added or removed an element, modified one or more properties of an element, etc.

 

1 Comment

Feed
  1. Could you put an example or two of how to use this? What exactly would the syntax be?

Add Comment


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