import Component  from '../component.js'

export default class CoEuiDropdown extends Component {
    constructor(parent) {
      let selector = 'eui-dropdown';
      super(parent, selector);
      this.overlayContainer = new CdkOverlayContainer(new ChainedXpathElement('//body'));
    }
    // eui button
    get euiButtonCO() {
      return new CoEuiButton(this.currentPath);
    }
    // Mat section
    get matmenu() {
      let path = '//mat-menu';
      return this.currentPath + path;
    }
    get matContentWrapper() {
      let path = '//div[contains(@class, "eui-dropdown-content-wrapper")]';
      return this.overlayContainer.overlayPane + path;
    }
    get matDropdownContent() {
      let path = '//*[contains(@class, "eui-dropdown-content")]';
      return this.matContentWrapper + path;
    }
}


