Hybrid View
-
14 Feb 2012 1:40 PM #1
Unanswered: Using Sencha controllers with a traditional desktop approach
Unanswered: Using Sencha controllers with a traditional desktop approach
Hi, I'm currently trying out Sencha as a central framework to support product development across mobile formats and desktop.
The goal is to consolidate as much of our code as possible so only the very front end work needs to be duplicated for each platform. I was hoping to get some feedback on what the best way to do this might be.
I've found a working—although not ideal—solution by defining desktop profiles for each view with html only:
I think, ideally, I'd like to extend something like 'Ext.RawHTML' (if such a thing exists) where I could just specify html (or a url reference) for the whole document or document body.Code:Ext.define 'asdf.view.desktop.Welcome', extend: 'Ext.Panel' xtype: 'welcomePanel' config: items: [ html: ''' everything goes in here''' ]
Just trying to clean up the DOM as much as possible for Desktop development.
Thanks in advance for any help you all might be able to provide
-Adam
-
14 Feb 2012 2:32 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3101
I'm not sure I fully understand. For that one view you just want html to show or you want other items or?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote