import Component  from '../component.js'
import CoEuiMenuItem from './eui-menu-item.js'
import UlComponent from '../ul.js';

export default class CoEuiMenuSubSubItems extends Component {
  constructor(parent) {
    let selector = 'eui-menu-item';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-menu/eui-menu.component.html?at=support/13.x
  }
  get listCO(){
    return new UlComponent(this.currentPath).byAttributeContains('class','eui-menu-sub');
  }
  async isExpendedHasChildren(){
    return await( await $(this.listCO.currentPath)).isExisting();
  }
  get subItemCO(){
    return new CoEuiMenuItem(this.listCO);
  }
  
}


