import Component  from '../component.js'
import MatOption from './mat-option.js'

export default class MatOptGroup extends Component {
    constructor(parent) {
      let selector = 'mat-optgroup';
      super(parent, selector);
    }
    //https://github.com/angular/components/blob/ad248652e7da31398176fe11878b59805e440b5a/src/material/core/option/optgroup.html
    get label() {
        let path = '//span[contains(@class, "mat-optgroup-label")]';
        return this.currentPath + path;
    }
    get matOption() {
        let path = '//mat-option';
        return this.currentPath + path;
    }
    get matOptionCO() {
      return new MatOption(this.currentPath);
  }

}
