Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1933

Using comma in button labels

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-android, cordova-js
    • Labels:
      None

      Description

      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.

      navigator.notification.confirm('Alert!', function(){}, function(){}, 'Title', ['Yes, Do It', 'No']);

      For compatibility it shouldn't be a problem to detect whether a string or an array has been passed and act accordingly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                max.woghiren Max Woghiren
                Reporter:
                airblader Ingo Bürk
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: