O'Reilly logo

Backbone.js Cookbook by Vadim Mirgorod

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Assembling layouts with LayoutManager

Backbone.LayoutManager is one of the most useful extensions for Backbone.js. It allows to build a layout out of panes easily and to get rid of many lines of code compared to using just Backbone views. LayoutManager also provides mechanisms to load templates from the main HTML file or external files.

Let's build an application which will have two panes. On the first pane, the user will see a list of invoices, and on the other pane he'll see invoice details.

Assembling layouts with LayoutManager

By clicking on the invoice number from the first pane, our application will update the second pane immediately.

Getting ready

You can download Backbone.LayoutManager ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required