Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1505

Add ability to pass cancel attribute to Option element for OptionDialog

    Details

    • Story Points:
      3
    • Sprint:
      2018 Sprint 04 Tooling, 2018 Sprint 05 Tooling, 2018 Sprint 06 Tooling, 2018 Sprint 07 Tooling

      Description

      As a developer,
      I want to be able to mark an option as being the option to use for cancelling an OptionDialog in Alloy XML,
      So that I can use OptionDialog in view without dependency on controller.

      Currently, I can do this:

             <OptionDialog id="dialog" title="Delete File?" cancel="2" >
                  <Options>
                      <Option>Confirm</Option>
                      <Option platform="ios">Help</Option>
                      <Option>Cancel</Option>
                  </Options>
       
              </OptionDialog>
      
      

      However, if an option is not displayed due to conditional code, then the index number will no longer be valid.

      Proposed new attribute:

             <OptionDialog id="dialog" title="Delete File?">
                  <Options>
                      <Option>Confirm</Option>
                      <Option platform="ios">Help</Option>
                      <Option cancel="true">Cancel</Option>
                  </Options>
       
              </OptionDialog>
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                brentonhouse Brenton House
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  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