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
    193
    Answers
    41
    Vote Rating
    7
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar