Threaded View

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    55
    Vote Rating
    0
    vvatikiotis is on a distinguished road

      0  

    Default Answered: Proper way to define a property

    Answered: Proper way to define a property


    Hello all,

    this is a newbie question so bare with me. I want to define a custom property in each and every Panel of a Carousel, or more generally I want to define a custom property in a ST2 component. How would I go about it?
    a) simply define it in the component object, inside the Ext.define or
    b) extend the component to create my own and in there define the property?

    If b) is the correct answer where should I place the component definition?

    thx

  2. I would do this:

    Code:
    Ext.define('MyComponent', {
        extend : 'Ext.Component',
    
        config : {
            foo : 'bar'
        }
    });
    That only works if you are going to use MyComponent, this will not affect existing classes. If you want to affect all components then you should do something like:

    Code:
    Ext.define('Override.Component', {
        override : 'Ext.Component',
    
        config : {
            foo : 'bar'
        }
    });
    That will affect all subclasses of Ext.Component.

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