Each view must have a view HTML file which can be found in the "views" directory with a filename composed of the view name and the extension ".html". This HTML defines the appereance of the view and contains bindings to the view's view model.

HTML element IDs

Because a view's HTML can be instantiated multiple times, all element IDs in the HTML should start with "vId_" which is replaced by a unique view ID for each view instance. Use the method getElement() of the view "code-behind" class to get the HTML DOM object (returns a jQuery object). Check out the view page for more information on how to use element IDs.

Last edited Jun 25, 2013 at 8:01 PM by rsuter, version 13


No comments yet.