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,379

    Default

    You just need to get the buttons and then see which one is pressed.
    Mitchell Simoens @LikelyMitch

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

    Posts are my own, not any current, past or future employer's.

  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,379

    Default

    All the radiogroup does is iterate through it's items. So that's what you will have to do.
    Mitchell Simoens @LikelyMitch

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

    Posts are my own, not any current, past or future employer's.

  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,379

    Default

    Since Ext JS 4 is out, there will be no more new features added to Ext JS 3
    Mitchell Simoens @LikelyMitch

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

    Posts are my own, not any current, past or future employer's.

Posting Permissions

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