Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19827

Allow object type in Ti.UI.OptionDialog.options

    Details

      Description

      It is currently not possible to use image options inside the Ti.UI.OptionDialog. The proposal is to introduce support those by making the options property ready to hold either string- or object-values. That needs changes on both iOS and Android to achieve parity.

      Proposal:

      var win = Ti.UI.createWindow({
          backgroundColor: "#fff"
      });
       
      var btn = Ti.UI.createButton({
          title: "Show dialog"
      });
       
      win.add(btn);
      btn.addEventListener("click", function() {
          var dia = Ti.UI.createOptionDialog({
              options: [{
                      title: "Appcelerator",
                      image: "appcelerator_small.png"
                  }, {
                      title: "Another option"
                  }, {
                      title: "Cancel",
                  }],
                  cancel: 2
      	});
      	dia.show();
      });
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kopiro Flavio De Stefano
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code