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

Windows: CommandBar does not work with TabGroup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 4.1.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2015 Sprint 13 Windows

      Description

      Unable to attach Ti.UI.Windows.CommandBar onto Window on TabGroup.

      var tabGroup = Titanium.UI.createTabGroup();
       
      var win1 = Titanium.UI.createWindow({
          title: 'Tab 1',
          backgroundColor: '#fff'
      });
      var tab1 = Titanium.UI.createTab({
          icon: 'KS_nav_views.png',
          title: 'Tab 1',
          window: win1
      });
       
      var label1 = Titanium.UI.createLabel({
          color: '#999',
          text: 'I am Window 1',
          font: { fontSize: 20, fontFamily: 'Helvetica Neue' },
          textAlign: 'center',
          width: 'auto'
      });
       
      win1.add(label1);
       
      var platform = Ti.Platform.osname;
      if (platform === 'windowsphone' || platform === 'windowsstore') {
          // Windows command bar
          var commandBar = Ti.UI.Windows.createCommandBar();
          var addButton = Ti.UI.Windows.createAppBarButton({ icon: Ti.UI.Windows.SystemIcon.ADD, touchEnabled: true });
          addButton.addEventListener('click', function () {
              alert('clicked');
          });
          commandBar.items = [addButton];
          win1.add(commandBar);
      }
       
      tabGroup.addTab(tab1);
      tabGroup.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                kiguchi Kota Iguchi
                Reviewer:
                Christopher Williams
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code