cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingo Bürk (JIRA) <>
Subject [jira] [Commented] (CB-1933) Using comma in button labels
Date Fri, 15 Feb 2013 20:59:12 GMT


Ingo Bürk commented on CB-1933:

Deleted my previous comment. I have to read more carefully. Maybe the best way to go is to
not include this at all until it is added for all platforms. I don't like the discrepancy
between the platforms. Once they're all there it could be included in a future release and
the comma-separated method could just be removed as deprecated.

The reason I don't like the discrepancy is because it might lure people into using the array
format and then their code breaks on other platforms. Although that certainly could be stated
in the API as a "quirk" for other platforms not supporting it yet (but that's somewhat of
a lie – it's not a quirk, it simply wouldn't be implemented yet).
> Using comma in button labels
> ----------------------------
>                 Key: CB-1933
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, CordovaJS
>            Reporter: Ingo Bürk
>            Assignee: Max Woghiren
>            Priority: Minor
> It's currently not possible to use comma in button labels when creating confirm dialogs.
This would be useful for buttons like "Yes, Delete".
> Probably a good idea for implementation would be allowing an array as the buttonLabels
argument, e.g.
> {code}navigator.notification.confirm('Alert!', function(){}, function(){}, 'Title', ['Yes,
Do It', 'No']);{code}
> For compatibility it shouldn't be a problem to detect whether a string or an array has
been passed and act accordingly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message