11-06-2012 01:53 AM
Hi,
I have an application designed using the backbone and jquery.
Now, i want to include BBUI in it? Is it possible to integrate BBUI with Backbone.
Regards,
Annuk
11-08-2012 12:44 AM
Hi,
Has anybody integrated BBUI.js with Backbone.js?
Regards,
Annuk
11-09-2012 10:57 AM
One of our team members here has created a sample. He's been very busy so he hasn't been able to get it into open source yet. I'll check with him on the timeline.
11-12-2012 05:08 PM
What features of backbone.js do you want to use with bbUI.js? are you looking to use views and models, or also routing? I expect the objects are fully compatible, but since bbUI.js does not use URL hashs for navigation, routing would not be supported.
11-14-2012 12:55 AM
Hi,
Thanks for your replies Tim and Adam.
Adam i want to use the views, model as well as the routing functionality of Backbone.
Currently i am using:
define(["jquery", "backbone"], function($, Backbone) {
var HomePageView = Backbone.View.extend({
id : "homepage",
initialize : function() {
console.log('Initializing Homepageview....');
_.bindAll(this, 'render');
this.render();
},
render : function() {
//$(this.el).html(this.template);
console.log('Rendering HOMEPAGE');
return bb.pushScreen('js/views/template/contextMenu.htm', 'context','{"id":"11","name":"yahoo"}');
},
});
return HomePageView;
})for routing and the pages are getting successfully rendered. Only problem is of passing the data to the html page.
Tim if you could post your sample it would be of great help to us.
Regards,
Annuk.