nm1
19 Sep 2012, 1:42 AM
I came across several hits for this topic in the forums, but I am clear what allowDepress implies. I just want to confirm my comment below is correct -
1. Clicking an unpressed button, switches it to pressed state.
2. If allowDepress=false, then you cannot unpress a pressed button. The only way to unpress a button is by pressing another button in the SegmentedButton set.
This gives me a radio button like functionality where only a single button is pressed.
I wrote a simple example where I set allowDepress=false, but I observed while single stepping thru the code, the updateAllowMultiple method switches this to true because this.getInitialConfig().hasOwnProperty('allowDepress') returns false. Is this a known bug?
1. Clicking an unpressed button, switches it to pressed state.
2. If allowDepress=false, then you cannot unpress a pressed button. The only way to unpress a button is by pressing another button in the SegmentedButton set.
This gives me a radio button like functionality where only a single button is pressed.
I wrote a simple example where I set allowDepress=false, but I observed while single stepping thru the code, the updateAllowMultiple method switches this to true because this.getInitialConfig().hasOwnProperty('allowDepress') returns false. Is this a known bug?