Beginning Backbone.js by James Sugrue

Beginning Backbone.js by James Sugrue

Author:James Sugrue [Sugrue, James]
Language: eng
Format: epub, pdf
Tags: Web, Computers, JavaScript, Web Programming, Programming Languages
ISBN: 9781430263357
Google: uJwQAwAAQBAJ
Publisher: Apress
Published: 2013-12-16T00:00:00+00:00


Checkbox

Date Picker (requires Moment.js)

Link

Text Area

Text Field

Time Picker

There are also a number of components that can be bound to models with alternatives, a term used to identify a collection that is used to present other values. These widgets are multivalue widgets such as menus and drop-down lists.

For example, you may want to create a menu widget to allow the selection of one of the books from the library. In this case, the model property continues to point to a particular book instance, while the alternatives property is mapped to the myLibrary collection.

var menu = new Backbone.UI.Menu({

model: backboneBook,

content: 'name',

alternatives: myLibrary,

altLabelContent: 'name'

}).render();

$(".container").append(menu.el);

The other multiselect input elements provided in Backbone UI are as follows: Menu



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.