Questions tagged [backbone-layout-manager]

A layout and template manager for Backbone.js applications.

33 questions
8
votes
2 answers

Trouble with RequireJS optimizer config, bbb release

I'm using RequireJS, backbone boilerplate with layout manager, JamJS to help manage packages, and everything works fine in development, but when I try to create a production version with concatenated files it doesn't work. It looks like the shim in…
3
votes
1 answer

Difference between Backbone.Layout.extend and Backbone.view.extend

So I have got this new project which has this line in every view. Backbone.Layout.extend({ /*...*/ }) But when I look at the documentation for Backbone and other tutorials, it has Backbone.View.extend({ /*...*/ }) Also all the views have…
Sourav Prem
  • 923
  • 11
  • 23
3
votes
2 answers

How can I fetch data asynchronously in backbone using backbone layout manager?

I'm having a problem in Layout Manager to get the view to wait to render until a bunch of AJAX calls have completed and successfully populated a collection which I pass to subviews. Here's my initialization function: initialize : function(){ …
Evan
  • 5,476
  • 7
  • 29
  • 57
3
votes
1 answer

Memory Leak when deleting items from DOM using backbone

I am having issues with DOM elements being left in memory after being deleted. I have set-up an example shown below. Note I am using the backbone layout manager plugin to manage my views (as well as jQuery). I have done a heap snapshot in Chrome…
DownChapel
  • 1,354
  • 1
  • 15
  • 28
3
votes
3 answers

Backbone LayoutManager Re-Render SubViews

I'm using BBB with the great LayoutManager for the views. Unfortunately, i can't find a way to re-render specific subviews. Here is my setting: Home.Views.Layout = Backbone.Layout.extend({ template: "home/home", el: "#main", views: { …
3
votes
2 answers

Underscore.js "some" not return boolean

I'm using underscore.js to check if an element is true within a list. Here is the coffeescript code for it: uploading = _(@getViews ".file-forms").some (view) -> view.uploading is true printing 'uploading', instead of returning true or false,…
2
votes
1 answer

Backbone.Layoutmanager error trying to init view

I'm trying to create a backbone app using Backbone.Layoutmanager. I'm getting this rather unhelpful error Uncaught TypeError: Object.keys called on non-object I'm starting with an empty html file that I want to render an 'appChrome' layout…
2
votes
1 answer

Backbone Layout Manager subview's events doesn't work after reload

I'm using the Backbone Layout Manager Boilerplate. Unfortunately, a quite frustrating bug occurred. I like render a list of items as subviews inserted by insertView function. At the first load everthing works fine. But after a reload the the click…
1
vote
0 answers

BackboneJS - Add different view or layout when .fetch() returns error?

Can I add a different View or Layout in case of fetching an collection returns error? Right now, I'm doing it like this: this.artistsCollection.fetch({ error: function() { $('div.artistsDiv').append('
SHT
  • 680
  • 3
  • 16
  • 39
1
vote
0 answers

CSS & Bootstrap Custom Burn Transition

Hey guys i am trying to create a quick burn effect. I am using Backbonejs, Backbone Layout manager and twitter bootstrap. I have a wrapper div which contains a bunch of tex fields, imgs, labels, ect... the wrapper div is controlled by a backbone…
1
vote
1 answer

Backbone Layout Manager - Render not called

Here is an example code from the github of backbone layout manager. The custom render for the view is not getting called/it doesn't stop on the break point.what is happening. // Create a Content view to be used with the Layout below. var…
coool
  • 7,725
  • 12
  • 50
  • 77
1
vote
1 answer

Rendering Backgrid when using Layoutmanager

I'm using Layoutmanager with manage set to true Backbone.Layout.configure({ manage: true which messes up rendering of the Backgrid. When manage is set to false then the table is rendered correctly, but if I set manage to true, then the table…
Strudel
  • 769
  • 3
  • 9
  • 18
1
vote
2 answers

Backbone Boilerplate Layout Manager

Can someone help explain / provide an example on how to use the LayoutManager within the Backbone Bolierplate? Within app.js I can see a useLayout function that extends the main app object. Within here it appears to be setting a base layout…
1
vote
2 answers

Can I stop Backbone LayoutManager from generating extra

Given these templates: And this view setup: var View1 =…
Domenic
  • 100,627
  • 39
  • 205
  • 257
1
vote
1 answer

backbone layout manager after render

I am using Backbone and Layout Manager. I have this code inside MyView.js: afterRender: function() { var scope = this; this.model.get("books").each(function(bookModel) { var bookView = new BookView({ model:…
Naor
  • 21,508
  • 42
  • 135
  • 250
1
2 3