Difference between revisions of "Website:MobileModels"

From WormBaseWiki
Jump to navigationJump to search
(Created page with '__TOC__ = 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…')
 
 
Line 13: Line 13:
  
 
It simply represents a single search result item. This model is a standard Backbone Model object without any other customization.
 
It simply represents a single search result item. This model is a standard Backbone Model object without any other customization.
 +
 +
[[Category:Mobile Website (Web Dev)]]

Latest revision as of 15:28, 19 June 2014

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.