Integrate the base boiler room with jQuery Mobile and layout layout

I just started with Backbone.js, I read the documentation, as well as a book of basic basics, before doing anything. I want to create a PhoneGap application using Backbone.js, and I lost a bit of information about where to put some logic in Backbone.js or how to integrate jQuery Mobile.

I need jQuery Mobile because I want to create an application with this precise structure , 2 panels that you can open with swipe movement.

To integrate jQuery Mobile, the only thing I have to do for BBB is to add a new Shim (and libs) to the configuration file? Is this the right workflow? Or do I need to touch something in vendor/ ?

As soon as I have jQuery Mobile built into the base boiler, I just want to play the demo. I know how to post this code on an old fashioned website, how I will post my files, etc. But when it comes to Backbone ... I'm completely lost. Where is the place to put JavaScript code that will launch the functionality of the panels?

Thanks in advance!

+4
source share
1 answer

Usually using jQueryMobile with Backbone gives headaches. Fortunately, I found a solution that simplified the problem. This is a library called Jackbone. The author explained this better than I could:

Summary

Jackbone is a utility library whose goal is to structure the development of rich HTML5 applications using JQuery Mobile by expanding the backbone structure. It relies heavily on Backbone, offering specialized classes for your browsing and router. In addition, it defines the interface of the controller, provide a view manager that handles the life and death of the views and controllers of your application.

https://github.com/Fovea/jackbone

+1
source

Source: https://habr.com/ru/post/1480675/


All Articles