1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    85
    Answers
    6
    Vote Rating
    0
    toxkillfraex is on a distinguished road

      0  

    Default Answered: ToggleGroup with buttons

    Answered: ToggleGroup with buttons


    I'm kinda lost on the toggleGroup setting and the documentation doesn't get me any wiser

    I have three buttons with the same toggleGroup bot only one of them toggles the rest works like average buttons.

    this is how I define them

    Code:
    inBtn = Ext.create('Ext.button.Button', {
                xtype: 'button',
                id: 'in',
                text: 'in',
                toggleGroup: 'searchBtns'
            });
            outBtn = Ext.create('Ext.button.Button',{
                xtype: 'button',
                id: 'out',
                text: 'out',
                togglegroup: 'searchBtns'
            });
            searchBtn = Ext.create('Ext.button.Button',{
                xtype: 'button',
                id: 'search',
                text: 'search',
                togglegroup: 'searchBtns'
            });
    afterwards I simple add them to a panel

    Code:
    Ext.applyIf(me,
            {
                items: [inBtn, outBtn, searchBtn, searchForm, grid]
            });
    I don't think the other variables of this panel are of interest here

    do I need to group them in a container or something? Or does it only work in toolbars? Either way I'm not getting much feedback >.<

  2. Code:
    inBtn = Ext.create('Ext.button.Button', {
                xtype: 'button',
                id: 'in',
                text: 'in',
                toggleGroup: 'searchBtns'
            });
            outBtn = Ext.create('Ext.button.Button',{
                xtype: 'button',
                id: 'out',
                text: 'out',
                toggleGroup: 'searchBtns'
            });
            searchBtn = Ext.create('Ext.button.Button',{
                xtype: 'button',
                id: 'search',
                text: 'search',
                toggleGroup: 'searchBtns'
            });

  3. #2
    Sencha User chramer's Avatar
    Join Date
    Feb 2011
    Location
    Chisinau, Moldova
    Posts
    203
    Answers
    42
    Vote Rating
    10
    chramer will become famous soon enough

      0  

    Default


    Code:
    inBtn = Ext.create('Ext.button.Button', {
                xtype: 'button',
                id: 'in',
                text: 'in',
                toggleGroup: 'searchBtns'
            });
            outBtn = Ext.create('Ext.button.Button',{
                xtype: 'button',
                id: 'out',
                text: 'out',
                toggleGroup: 'searchBtns'
            });
            searchBtn = Ext.create('Ext.button.Button',{
                xtype: 'button',
                id: 'search',
                text: 'search',
                toggleGroup: 'searchBtns'
            });

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    85
    Answers
    6
    Vote Rating
    0
    toxkillfraex is on a distinguished road

      0  

    Default


    *headdesk*

    lol stupid me xDD

Thread Participants: 1

Tags for this Thread

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