Hybrid View

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    46
    Vote Rating
    0
    Zavel is on a distinguished road

      0  

    Default Adding plugins to Containers

    Adding plugins to Containers


    Hi, I'm attempting to add a PullRefresh plugin to a Container.

    Normally, I could specify it like this:

    plugins: [...
    ...passing in the plugins parameter while defining the items. How can i do this within Sencha Designer 2? Do i add a "plugins" parameter, and explicitly set it to the block of JSON defining the plugin? What is the best method?

    - Shane

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,181
    Vote Rating
    77
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Creating an override over initComponent() so you could change config object before calling overriden method but seems that there is a bug in ExtJS in override mechanism. But if you are using Touch it seems that such bug is fixed in 2 final.

    Regards.

    UPDATE:
    overriding initComponent() works!

    PHP Code:
    Ext.define('AutoGestion.view.override.DatosGenerales', {
        
    requires'AutoGestion.view.DatosGenerales'
    }, function() {
        
    Ext.override(AutoGestion.view.DatosGenerales, {
            
    initComponent : function() {
                
    alert("initComponent()");
                
    this.title "Otro";
                
    this.callOverridden(arguments);
            }
        });
        
    alert("initComponent() overriden...");
    }); 
    UI: Sencha Architect 3.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar