import CdkOverlayContainer from '../../cdk-overlay-container.js'
import Component from '../../component.js'
import DivComponent from '../../div.js'

export default class MatMenu extends Component {
    constructor(parent) {
        let selector = 'mat-menu';
        super(parent, selector);
        // https://github.com/angular/components/blob/master/src/material/menu/menu.html
    }
    get overlayContainerCO(){
        return new CdkOverlayContainer('//body');
    }
    get matMenuPanelCO() {
        return new DivComponent(this.overlayContainerCO).addPredicateClassContains('mat-mdc-menu-panel');
    }
    get matMenuContentCO() {
        return new DivComponent(this.overlayContainerCO).addPredicateClassContains('mat-mdc-menu-content');
  }
}
