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

Implement Ti.Android.Menu with TabGroup

    Details

      Description

      With TiSDK 3.1, windows within a tabgroup are no longer heavyweight. So the menu should be associated with the tabgroup. That would lead someone to try:

      <Alloy>
        <TabGroup>
          <Tab/>
        </TabGroup>
        <Menu>
          <MenuItem/>
        <Menu>
      </Alloy>
      

      But that fails with a build error. Or, you might try:

      <Alloy>
        <TabGroup>
          <Menu>
            <MenuItem/>
          <Menu>
          <Tab/>
        </TabGroup>
      </Alloy>
      

      But that also fails. You must put the menu tags within the window tag inside one of the tabs.

      A further consideration is that if developers want to have a different menu associated with each tab's window, they need to destroy, then re-create the menu on the tab change event. Being able to put the menu within the tab group within your index controller would let you keep this menu switching code in the index.js and not duplicate it across various subcontrollers.

      May relate to https://jira.appcelerator.org/browse/ALOY-277

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tlukasavage Tony Lukasavage
                Reporter:
                skypanther Tim Poulsen
              • Watchers:
                3 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