Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1427 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default [PR3] SegmentedButton- allowDepress not working

    [PR3] SegmentedButton- allowDepress not working


    Hi,

    it seems that we can't have a button depressed once pressed with
    Code:
    allowDepress: true
    you can do it with
    Code:
    allowMultiple: true
    but it's not the same way to use segmentedbutton.

    thx

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,212
    Vote Rating
    858
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thank you for the report!

    Code:
    new Ext.Container({
        fullscreen : true,
        items      : [
            {
                xtype        : 'segmentedbutton',
                allowDepress : true,
                items        : [
                    {
                        text : 'Option 1'
                    },
                    {
                        text    : 'Option 2',
                        pressed : true
                    },
                    {
                        text : 'Option 3'
                    }
                ]
            }
        ]
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1