jeudi 15 mai 2014

Using Sencha Touch without any UI Functionality?

Hi,

i want to use Sencha Touch on a simple Website (this Site is not an App).

I only want to use the very mature 'Core' of Touch like: MVC, Store, Models, Data handling aso.

I dont need any special UI Components (no TitleBars, Lists or Containers)

Problem:

To structure my Code the 'MVC Way' and to use Sencha CMD without any Problems -- it is recommended to start your app via:



Code:



Ext.application({
...
});

So far so good. This automatically adds some 'Viewport' to the DOM.


Code:



<div class="x-container x-sized" id="ext-viewport" style="width: 100% !important; height: 100% !important;">
<div class="x-body" id="ext-element-4">
<div class="x-inner" id="ext-element-2"></div>
</div>
</div>

In my Opinion (tell me if i am wrong) Touch assumes that now every viewable Stuff is in this 'Viewport', right? But my entire Site is outside this 'Viewport'. Indeed i have nothing in there ('Viewport').

I simply dont need the 'Viewport'.

Question(s):

Is it possible to origanize my Code the 'MVC Way', using Sencha Command too ... but without any Ext.application({..})?

-- or --

Is it possible to use Ext.application({..}) without any 'Viewport' starting up?

-- or --

Can i overwrite Ext.application({..}) to NOT starting up any 'Viewport'.


Which thinking errors am I doing? What would be the best Way to use Touch + MVC + Sencha CMD on

a normal Website without any UI from Sencha Touch itself ?


thnx in advance

Air41





Aucun commentaire:

Enregistrer un commentaire