-
14 Mar 2012 12:47 PM #1
Unanswered: How to add plugins
Unanswered: How to add plugins
Hi there,
I wrote a couple of plugins for Sencha Touch 2 and they are working if I add them with the full path.
Is there a way to add them in SenchaTouch 2 logic?
Best Kurt
-
14 Mar 2012 12:55 PM #2Sencha - Training Team
- Join Date
- Sep 2008
- Location
- Germany - Darmstadt
- Posts
- 682
- Vote Rating
- 10
- Answers
- 21
Whats the problem? The loading? did you define the loader path config? did you add requiers? may psot some code so we can better help
trainings / workshops / consulting: Sencha Touch / Ext JS
Profile on SenchaDevs
www: http://www.nils-dehl.de
twitter: nilsdehl
meetup: Sencha Touch / Ext JS Meetup Frankfurt
videos: http://vimeo.com/album/1621422
conference photos: http://www.flickr.com/photos/nils-dehl/
-
14 Mar 2012 1:08 PM #3
Plugins
Plugins
I am placing the Plugins in appRoot/app/plugin/<name>.js
I am defining the Plugin as follows
Adding them like thisCode:Ext.define('App.plugin.Input-Plugin', { extend:'Ext.Component', alias:'plugin.input_plugin', ...
And using it like this:Code:requires:[ 'App.plugin.Input-Plugin' ],
But this way it is not recognized when I run the JSB - build.Code:{ xtype: 'container', plugins: [{ xclass: 'App.plugin.Input-Plugin', id:'tag01', infoText:'Let me know', currencyText:'$', inputText:'432.21' }] },
So - how would you work with plugins in ST2


Reply With Quote