How to make emberjs app with a mobile look (like the one in jquery mobile)?

ぐ巨炮叔叔 提交于 2019-12-21 15:45:29

问题


I have a simple project of a web application for mobile using Emberjs. For the look and feel, I want something equivalent to JQuery Mobile. Is there a way to mix Emberjs and jquery mobile? If so, how?

I have looked at the Travis-ci mobile app and they seem to have only defined a specific css for the mobile version. What is strange is that they also have this file : file that seems to be an attempt to integrate with JQMobile but they don't use it anywhere in the code.

I also have found this article Using Ember.js with jQuery UI but it's about JQuery UI. Can I use the same technique for JQuery Mobile?

Please share your own experience about having a mobile look and feel with Emberjs.

If you know any open source project on GitHub or wherever that uses Emberjs for mobile I will be thankful if you let me know the address.

What Technique do you recommend?

Note: I have make a first attempt to use the 'data-' html5 attributes of jquery mobile within a list generated by a controller but the elements of the view don't have change to a jquery mobile look and feel and I not sure why.

Sorry for my English, it is not my mother tongue.


回答1:


As stated in the Ember.js wiki there are two projects concerning mobile:

  • ember-titanium - Titanium Mobile wrapped in Ember (formerly SproutCore-Titanium)
  • ember-mk - Mobile Kit for ember.js

Maybe they are useful for you.




回答2:


@luissala created a proof of concept project using Ember with jQuery Mobile. It might get you on the right track:

https://github.com/LuisSala/emberjs-jqm




回答3:


Have a look at Twitter Bootstrap: http://twitter.github.com/bootstrap/




回答4:


https://github.com/fohr/blossom

Is in a very premature state, but it seems pretty promising. It's from the guys who started Sproutcore (I think!), so the syntax is very relevant to EmberJS



来源:https://stackoverflow.com/questions/9747966/how-to-make-emberjs-app-with-a-mobile-look-like-the-one-in-jquery-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!