1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    567
    Answers
    34
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default 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

  2. #2
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    690
    Answers
    21
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    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

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    567
    Answers
    34
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default Plugins

    Plugins


    I am placing the Plugins in appRoot/app/plugin/<name>.js

    I am defining the Plugin as follows
    Code:
    Ext.define('App.plugin.Input-Plugin', {
        extend:'Ext.Component',
        alias:'plugin.input_plugin',
    ...
    Adding them like this

    Code:
        requires:[
            'App.plugin.Input-Plugin'
        ],
    And using it like this:
    Code:
              {
                    xtype: 'container',
                    plugins: [{
                        xclass: 'App.plugin.Input-Plugin',
    
    
                        id:'tag01',
                        infoText:'Let me know',
                        currencyText:'$',
                        inputText:'432.21'
                    }]
                },
    But this way it is not recognized when I run the JSB - build.

    So - how would you work with plugins in ST2

Thread Participants: 1