packages/ag-grid-docs/src/dist/aui/js/aui.js
// function that handles moving items out of the show more menu into the app header
function that handles moving items out of the show more menu into the app header
function that handles moving items out of the show more menu into the app header
function moveOutOfResponsiveDropdown(numItems) {
          if (numItems <= 0) {
              return;
          }
          var $moreDropdown = (0, _jquery2.default)('#aui-responsive-header-dropdown-' + this.index);
          var leftMostIndexToMove = this.rightMostNavItemIndex + 1;
          var rightMostIndexToMove = this.rightMostNavItemIndex + numItems;
          for (var i = leftMostIndexToMove; i <= rightMostIndexToMove; i++) {
              var $navItem = this.menuItems[i].$element;
              var $navItemTrigger = $navItem.children('a');
              var $navItemDropdown = (0, _jquery2.default)('#' + $navItemTrigger.attr('aria-controls'));
              if ($navItemTrigger.attr('aria-controls')) {
                  $navItemDropdown.removeClass('aui-dropdown2-sub-menu');
                  $navItem.append($navItemDropdown);
              }
              $moreDropdown.find('aui-item-link:first').remove();
              $navItem.insertBefore(this.$moreMenu);
          }
          this.rightMostNavItemIndex += numItems;
      }
function moveOutOfResponsiveDropdown ( numItems ) { if ( numItems <= 0 ) { return ; } var $moreDropdown = ( 0 , _jquery2 . default ) ( '#aui-responsive-header-dropdown-' + this . index ) ; var leftMostIndexToMove = this . rightMostNavItemIndex + 1 ; var rightMostIndexToMove = this . rightMostNavItemIndex + numItems ; for ( var i = leftMostIndexToMove ; i <= rightMostIndexToMove ; i ++ ) { var $navItem = this . menuItems [ i ] . $element ; var $navItemTrigger = $navItem . children ( 'a' ) ; var $navItemDropdown = ( 0 , _jquery2 . default ) ( '#' + $navItemTrigger . attr ( 'aria-controls' ) ) ; if ( $navItemTrigger . attr ( 'aria-controls' ) ) { $navItemDropdown . removeClass ( 'aui-dropdown2-sub-menu' ) ; $navItem . append ( $navItemDropdown ) ; } $moreDropdown . find ( 'aui-item-link:first' ) . remove ( ) ; $navItem . insertBefore ( this . $moreMenu ) ; } this . rightMostNavItemIndex += numItems ; }
function that handles moving items out of the show more menu into the app header
function that handles moving items out of the show more menu into the app header
// Move items (working top-to-bottom) from the more menu into the nav bar.