Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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