1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
    Oxii is on a distinguished road

      0  

    Default Change content depending on button click

    Change content depending on button click


    hello

    i would like to know what is the best way to switch toolbar and panel content depending on button click.
    do i have to use controllers ?

    Thanks in advanced.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi!

    on button Click event , you may remove or add components in your toolbar or panel.

    Sample is listed below:-

    This sample adds button in a panel after a button is clicked.

    Code:
    //Your Button
    {
        text:'Sample Button'
        handler:yourScope.onSampleButtonClick
    }
    
    
    onSampleButtonClick:function(button){
        var toolbar=button.findParentByType('toolbar');
        toolbar.add([{text:'Button 1'}, {text:'Button 2'}]);
        panel.doLayout();    
    }
    or you can also use .index instead of add to Inserts a Component into this Container at a specified index
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
    Oxii is on a distinguished road

      0  

    Default


    Thank you so much !

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