[TIMOB-1321] Feature Request:: property to set default option with UI.OptionDialog
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M06 |
Components | Android |
Labels | android, feature, release-1.6.0 |
Reporter | Ralf Pfeiffer |
Assignee | Don Thorp |
Created | 2011-04-15T02:49:19.000+0000 |
Updated | 2011-04-17T01:55:51.000+0000 |
Description
When an OptionDialog is created, there is no way to set which of the options in the list is currently active. This is a behaviour that is seen throughout many apps in the android marketplace. The settings in the Alarm Clock (installed by default on Android devices) is an example of this.
Please see http://developer.appcelerator.com/question/43591/how-to-set-default-option-with-uioptiondialog"> http://developer.appcelerator.com/question/43591/how-to-set-default... for more information.
Thanks
Hal
I difficult to understand why option dialog does not have an "enabled" property, like the switch control.
Just to note, while I still think it would be logical to have this feature in optionDialog, for those who require this feature on Android, investigate the Ti.UI.createPicker() control.
I talked with the iOS folks and OptionDialog is intended to be used as a set of "buttons" non-stateful selection. We will need to create another control for Android that supports persistent options. Once we figure that out. I'll change the title of the issue to reflect that task.
Added the ability to specify the selectedIndex when the Dialog is created: https://github.com/appcelerator/titanium_mobile/pull/54">https://github.com/appcelerator/titanium_mobile/pull/54
Moving to M06. Ran out of time to document and write test code in M05.
(from [dab7f412915b60ea29fa225db3a3bea5ad6df356]) [#1321 state:fixed-in-qa] documented, KS updated to use selectedIndex, fixed bug in patch, added support for property changes. https://github.com/appcelerator/titanium_mobile/commit/dab7f412915b60ea29fa225db3a3bea5ad6df356"> https://github.com/appcelerator/titanium_mobile/commit/dab7f412915b...
(from [10496792a725d70330aaae406bd0e2610ee2e3d3]) [#1321 state:in-progress] code, needs test and doc. Merge branch '1321-defaultOptionUIOptionDialog' of https://github.com/yellowandy/titanium_mobile">https://github.com/yellowandy/titanium_mobile into yellowandy-1321-defaultOptionUIOptionDialog https://github.com/appcelerator/titanium_mobile/commit/10496792a725d70330aaae406bd0e2610ee2e3d3"> https://github.com/appcelerator/titanium_mobile/commit/10496792a725...
out of order notification changed this back to in-progress. Hand setting it to fixed-in-qa.
verified with KS on Nexus S / 2.3.2