Downloads Project Source Contribute Standard Select Turns This Into This Multiple Select <optgroup> Support Single Select with Groups Multiple Select with Groups Selected and Disabled Support Chosen automatically highlights selected options and removes disabled options. Single Select Multiple Select Hide Search on Single Select The disable_search_threshold option can be specified to hide the search input on single selects if there are fewer than (n) options.
The Sample Application You can run the application here. Twitter Bootstrap highlights Backbone.js highlights One-to-Many association. Extensions, Plugins, Resources · documentcloud/backbone Wiki. Dependencies Underscore.js Backbone's only hard dependency.
JSON2.js Needed if you'd like to parse and serialize JSON in older browsers (read: "Internet Explorer") jQuery Recommended for DOM manipulation and Ajax. Lo-Dash A performance-minded Underscore alternative with customs builds and additional features. Zepto A jQuery alternative for mobile apps NB: Zepto isn't fully compatible with jQuery, use at your own risk Backbone.Native A tiny drop-in replacement for jQuery to allow Backbone to work while relying on only native DOM APIs. Exoskeleton A faster and leaner Backbone for your HTML5 apps. Backbone fork with 100% optional dependencies, speed improvements and other enhancements.
Development Tools Backbone Eye A Firebug extension to debug Backbone based applications running off web-browsers. Backbone Debugger Chrome Developer Tools extension for debugging Backbone.js applications. Model Backbone.DocumentModel Backbone.ModelAttrs Backbone.NestedTypes Backbone.ModelMorph Backbone.Schema Backbone Forms Storage. Organizing your application using Modules (require.js) - Backbone.js Tutorials. Unfortunately Backbone.js does not tell you how to organize your code, leaving many developers in the dark regarding how to load scripts and lay out their development environments.
What is AMD? Asynchronous Module Definitions designed to load modular code asynchronously in the browser and server. This tutorial will use Require.js to implement a modular and organized Backbone.js. I highly recommend using AMD for application development Quick Overview ModularScalableCompiles well(see r.js )Market Adoption( Dojo 1.6 converted fully to AMD ) Why Require.js? Require.js has a great community and it is growing rapidly. Getting started <!
Naming Backbone.js Code with Require.js. ‹prev | My Chain | next› One last bit of bookkeeping remains for my in my exploration of require.js with Backbone.js: file naming.
Organizing Your Backbone.js Application With Modules – Organizing Your Backbone.js Application With Modules – Bocoup Web Log. If you have spent any time looking at Backbone.js, like many others, you are probably amazed by how lightweight, flexible and elegant it is.
Thankfully, in recent years, that's beginning to change. Today, I'd like to introduce you to Backbone.JS, a sweet little library that makes the process of creating complex, interactive and data driven apps so much easier. It provides a clean way to surgically separate your data from your presentation. Overview of Backbone.JS Created by Jeremy Ashkenas, the JS ninja who built CoffeeScript, Backbone is a super light-weight library that lets you create easy to maintain front ends. Backbone is a collection of cohesive objects, weighing in at a shade under 4kb, that lend structure to your code and basically helps you build a proper MVC app in the browser. Let's face it: the above is a little hard to parse and make sense of. Key-value binding and custom events Rich API of enumerable functions Views with declarative event handling Your days of writing spaghetti bind calls are over. Backbone.js Tutorials.
Also could you implement this example better in another framework? Understanding the Model View Controller Paradigm I have used many frameworks which promote that they use MVC. Getting started <! Setting up the main view. 1.js.