constructor(
    subMenuElement,
    { locale, name, makeSvgIcon, menuBarPosition, templateHtml, usageStatistics }
  ) {
    this.subMenuElement = subMenuElement;
    this.menuBarPosition = menuBarPosition;
    this.toggleDirection = menuBarPosition === 'top' ? 'down' : 'up';
    this.colorPickerControls = [];
    this.usageStatistics = usageStatistics;
    this.eventHandler = {};
    this._makeSubMenuElement({
      locale,
      name,
      makeSvgIcon,
      templateHtml,
    });
  }
@param {HTMLElement} subMenuElement - submenu dom element
@param {Locale} locale - translate text
@param {string} name - name of sub menu
@param {Object} iconStyle - style of icon
@param {string} menuBarPosition - position of menu
@param {*} templateHtml - template for SubMenuElement
@param {boolean} [usageStatistics=false] - template for SubMenuElement