import Component from '../../component.js'

export default class CoUxDashboardButton extends Component {
    constructor(parent) {
      let selector = 'ux-dashboard-button';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/ux-dashboard-button/ux-dashboard-button.component.ts?at=support/10.x
    }
    get dataE2E(){
      return this.currentPath +  '//div[@data-e2e = "ux-dashboard-button"]'
    }
    get buttonContent() {
      let path = '//div[@class = "ux-dashboard-button__content"]';
      return this.dataE2E + path;
    }
    get contentMainLabel() {
      let path = '//div[contains(@class, "ux-dashboard-button__content-main-label")]';
      return this.buttonContent + path;
    }
    get contentMainIcon() {
      let path = '//div[contains(@class,"ux-dashboard-button__content-main-icon")]';
      return this.buttonContent + path;
    }
    get contentMainIconElement() {
      let path = '//span[contains(@class,"ux-dashboard-button__icon-element")]';
      return this.contentMainIcon + path;
    }
    get contentTitle() {
      let path = '//div[contains(@class,"ux-dashboard-button__content-title")]';
      return this.buttonContent + path;
    }
    get contentSubTitle() {
      let path = '//div[contains(@class,"ux-dashboard-button__content-sub-title")]';
      return this.buttonContent + path;
    }
}


