Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1321] Feature Request:: property to set default option with UI.OptionDialog

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:51.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06
ComponentsAndroid
Labelsandroid, feature, release-1.6.0
ReporterRalf Pfeiffer
AssigneeDon Thorp
Created2011-04-15T02:49:19.000+0000
Updated2011-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

Comments

  1. hal 2011-04-15

    I difficult to understand why option dialog does not have an "enabled" property, like the switch control.

  2. hal 2011-04-15

    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.

  3. Don Thorp 2011-04-15

    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.

  4. Andreas sandberg 2011-04-15

    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

  5. Don Thorp 2011-04-15

    Moving to M06. Ran out of time to document and write test code in M05.

  6. Don Thorp 2011-04-15

    (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...

  7. Don Thorp 2011-04-15

    (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...

  8. Don Thorp 2011-04-15

    out of order notification changed this back to in-progress. Hand setting it to fixed-in-qa.

  9. Marshall Culpepper 2011-04-15

    verified with KS on Nexus S / 2.3.2

JSON Source