Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can i insert my touchEvents.js in another myjs.js file ??? Some examples?
    primarykey
    data
    text
    <p>I’m newbuy on Sencha framework. I read the partial guidebook which I have found on the website to try to create some panels with tabs and buttons. I would like to be able to understand how to create a my “events.js file” where putting the touch gesture event and calling them back into a mean myJS.js file. Particularly, in “dockeditems” which I have created for my mean panel, I have declared a tabPanel, some buttons and a panel where I have specified, as ‘html’, a .svg design file containing a planimetry. I wish I could apply ONLY on this last panel, containing this planimetry (for scaling by fingers), the TOUCH gesture events as PINCH, TAP, etc… How can I do this ? Could you let me see a very simple example of the way to use a touchEvent.js file (which I have to implement) and how to connect it to the mean file containing the EXT.SETUP( …. onReady…..) ? Something like that:</p> <p>(myEventTouch.js)</p> <pre><code>myHandler = function() {“Pinching”}; </code></pre> <p>(myPrincipalFile.js) </p> <pre><code>Ext.setup ({ onReady: function(){ new Ext.panel({ dockeditems: myitems }) } var dockedItems = [{ xtype: 'toolbar', title: 'Planimetry', ui: 'dark', dock: 'top', items: “ some buttons “, }, { id:'html', dock:'left', width: '75%', // HERE THERE IS THE CRITICAL POINT html: '&lt;object data="planimetry.svg" style="width: 100%; height: 100%" type="image/svg+xml" id="plan"/&gt;', handler: myHandler // HERE I WISH CALL BACK MY HANDLER }, { dock:'right', width:'25%', xtype:'tabpanel', items: [“something”] }) </code></pre> <p>Thanks in advance :)</p> <p>p.s.</p> <p>sorry for my english (i'm italian :P)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload