triceam / app-UI

app-UI is a collection of user interface components that may be helpful to web and mobile developers for creating interactive applications using HTML and JavaScript, especially those targeting mobile devices. app-UI is a continual work in progress - it was born out of the necessity to have rich & native-feeling interfaces in HTML/JS experiences, and it works great with PhoneGap applications (http://www.phonegap.com). app-UI can easily be styled/customized using CSS.
http://triceam.github.com/app-UI/
Other
1.27k stars 228 forks source link

separate views for mobile and tablet #24

Open danielbwa opened 12 years ago

danielbwa commented 12 years ago

Hey Andrew,

Not really an issue but i'm using split view right now and that looks great on a tablet but for mobile it isn't optimal... especially when you put your mobile in landscape and the nav view shows op. So i'm thinking about handling actions different bases on device, for example instead of pushing html to pushSidebarView() using pushBodyView for nav pages.. So i have to make the action bases on the device.

I notice this.winPhone in SplitViewNavigator.js and i thought maybe its an idea to add a var like device = "isMobile" or "isTablet" or something like that to make it possible to have device info and react to that.

I wonder how you think of this, maybe you have advice to handle mobile and tablet in the same code base with different views?

Thanks for you time, Daniel