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,265
    Vote Rating
    80
    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 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi