src/sap.ui.dt/src/sap/ui/dt/ContextMenuControl.js
function (aButtons) {
			var iButtonsEnabled = this._getNumberOfEnabledButtons(aButtons);
			if (iButtonsEnabled !== 0) {
				this._hideDisabledButtons(aButtons);
			}

			this._iButtonsVisible = this._hideButtonsInOverflow(aButtons);
			if (this._iButtonsVisible === this.getMaxButtonsDisplayed() && this._iButtonsVisible !== aButtons.length) {
				this._replaceLastVisibleButtonWithOverflowButton(aButtons);
			} else if (iButtonsEnabled < aButtons.length - 1 && iButtonsEnabled !== 0) {
				this.addOverflowButton();
			}

			iButtonsEnabled = null;
		}
function (aButtons) {
			var iButtonsEnabled = this._getNumberOfEnabledButtons(aButtons);
			if (iButtonsEnabled !== 0) {
				this._hideDisabledButtons(aButtons);
			}

			this._iButtonsVisible = this._hideButtonsInOverflow(aButtons);
			if (this._iButtonsVisible === this.getMaxButtonsDisplayed() && this._iButtonsVisible !== aButtons.length) {
				this._replaceLastVisibleButtonWithOverflowButton(aButtons);
			} else if (iButtonsEnabled < aButtons.length - 1 && iButtonsEnabled !== 0) {
				this.addOverflowButton();
			}

			iButtonsEnabled = null;
		}
function ( aButtons ) { var iButtonsEnabled = this . _getNumberOfEnabledButtons ( aButtons ) ; if ( iButtonsEnabled !== 0 ) { this . _hideDisabledButtons ( aButtons ) ; } this . _iButtonsVisible = this . _hideButtonsInOverflow ( aButtons ) ; if ( this . _iButtonsVisible === this . getMaxButtonsDisplayed ( ) && this . _iButtonsVisible !== aButtons . length ) { this . _replaceLastVisibleButtonWithOverflowButton ( aButtons ) ; } else if ( iButtonsEnabled < aButtons . length - 1 && iButtonsEnabled !== 0 ) { this . addOverflowButton ( ) ; } iButtonsEnabled = null ; }
Sets all parameters of the buttons in the non-expanded ContextMenu
@param {array} aButtons some buttons
Sets all parameters of the buttons in the non - expanded ContextMenu