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

iOS: Implement persistent support for Ti.UI.OptionDialog

    Details

    • Sprint:
      Release 3.0.0

      Description

      Implement persistent property for Option Dialog:

      Ti.UI.setBackgroundColor('white');
      var win = Ti.UI.createWindow({
        title: 'Click window to test',
        backgroundColor: 'white',
        exitOnClose: true,
        fullscreen: false
      });
       
      var opts = {
        cancel: 2,
        options: ['Confirm', 'Help', 'Cancel'],
        selectedIndex: 2,
        destructive: 0,
        persistent: false,
        title: 'Delete File?'
      };
       
      win.addEventListener('click', function(e){
        var dialog = Ti.UI.createOptionDialog(opts).show();
      });
      win.open();
      

      Run the code above. Click on screen. Press home key. Go back to app. You should not see the dialog.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                hpham Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14370
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration