1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    1
    Vote Rating
    0
    4dam is on a distinguished road

      0  

    Default 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:

    Code:
    Ext.define 'asdf.view.desktop.Welcome',
      extend: 'Ext.Panel'
      xtype: 'welcomePanel'
      config:
        items: [
          html: ''' everything goes in here'''
        ]
    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.

    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,073
    Answers
    3500
    Vote Rating
    853
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread