Website:MobileModels

From WormBaseWiki
Revision as of 15:28, 19 June 2014 by Sibyl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Object Model

It represents a WormBase object, uniquely identified by a class and an WormBase ID. A Widget Collection is associated to each Object Model.

Widget Model

It represents a Widget. It must be always initialized with a 'parent' property which should be set to the Widget Collection it belongs to, in order to handle the fetching of the widget content from the API properly.

Search Result Entry Model

It simply represents a single search result item. This model is a standard Backbone Model object without any other customization.