Results 1 to 2 of 2

Thread: Using Sencha controllers with a traditional desktop approach

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •