Results 1 to 6 of 6

Thread: How to get toggleGroup value

  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    321

    Default How to get toggleGroup value

    Hello !

    I've 3 buttons (A, B, C) in the same toggleGroup.
    I've an other button D with a toggleHandler.

    When the D button is (un)pressed, i want to run the D button's toggleHandler with the (A, B, C) button's toggleGroup value.

    How can i pass the (A, B, C) button's toggleGroup value as parameter ?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,392

    Default

    You just need to get the buttons and then see which one is pressed.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    321

    Default

    So, i must take every button of the togglegroup and check which one is pressed ?
    I was thinking it could be done like a radiogroup...

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,392

    Default

    All the radiogroup does is iterate through it's items. So that's what you will have to do.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    321

    Default

    It could be a good thing if Extjs can do this by itself for toggleGroup...

  6. #6
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,392

    Default

    Since Ext JS 4 is out, there will be no more new features added to Ext JS 3
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •