template() {
    this.hasIcons = this.querySelector('ids-list-box-option ids-icon') !== null;

    return `
    <ids-trigger-field
      label="${this.label}"
      part="trigger-field"
      ${this.disabled ? ' disabled="true"' : ''}
      ${this.readonly ? ' readonly="true"' : ''}
      ${this.validate ? ` validate="${this.validate}"` : ''}
      ${this.validate && this.validationEvents ? ` validation-events="${this.validationEvents}"` : ''}>
      ${this.hasIcons ? '<span class="icon-container"><ids-icon icon="user-profile"></ids-icon></span>' : ''}
      <ids-input
        part="input"
        disabled="${this.disabled}"
        label-hidden="true" ${!this.disabled && !this.readonly ? 'cursor="pointer"' : ''}
        readonly
        ${this.readonly ? 'cursor="text"' : ''}
        bg-transparent="${!this.readonly && !this.disabled}"
        user-select="none" triggerfield="true"></ids-input>
      <ids-trigger-button
        part="trigger-button"
        tabbable="false"
        disabled="${this.disabled}"
        readonly="${this.readonly}"
      >
        <ids-text audible="true">Dropdown Button</ids-text>
        <ids-icon slot="icon" icon="dropdown" part="icon"></ids-icon>
      </ids-trigger-button>
    </ids-trigger-field>
    <ids-popup type="menu" part="popup">
      <slot slot="content">
      </slot>
    </ids-popup>
    `;
  }
/**
   * Create the Template for the contents
   * @returns {string} The template
   */
Create the Template for the contents
@returns {string} The template
Create the Template for the contents @returns { string } The template
template() {
    this.hasIcons = this.querySelector('ids-list-box-option ids-icon') !== null;
    return `
    <ids-trigger-field
      label="${this.label}"
      part="trigger-field"
      ${this.disabled ? ' disabled="true"' : ''}
      ${this.readonly ? ' readonly="true"' : ''}
      ${this.validate ? ` validate="${this.validate}"` : ''}
      ${this.validate && this.validationEvents ? ` validation-events="${this.validationEvents}"` : ''}>
      ${this.hasIcons ? '<span class="icon-container"><ids-icon icon="user-profile"></ids-icon></span>' : ''}
      <ids-input
        part="input"
        disabled="${this.disabled}"
        label-hidden="true" ${!this.disabled && !this.readonly ? 'cursor="pointer"' : ''}
        readonly
        ${this.readonly ? 'cursor="text"' : ''}
        bg-transparent="${!this.readonly && !this.disabled}"
        user-select="none" triggerfield="true"></ids-input>
      <ids-trigger-button
        part="trigger-button"
        tabbable="false"
        disabled="${this.disabled}"
        readonly="${this.readonly}"
      >
        <ids-text audible="true">Dropdown Button</ids-text>
        <ids-icon slot="icon" icon="dropdown" part="icon"></ids-icon>
      </ids-trigger-button>
    </ids-trigger-field>
    <ids-popup type="menu" part="popup">
      <slot slot="content">
      </slot>
    </ids-popup>
    `;
  }
template ( ) { this . hasIcons = this . querySelector ( 'ids-list-box-option ids-icon' ) !== null ; return ` ${ this . label } ${ this . disabled ? ' disabled="true"' : '' } ${ this . readonly ? ' readonly="true"' : '' } ${ this . validate ? ` ${ this . validate } ` : '' } ${ this . validate && this . validationEvents ? ` ${ this . validationEvents } ` : '' } ${ this . hasIcons ? '<span class="icon-container"><ids-icon icon="user-profile"></ids-icon></span>' : '' } ${ this . disabled } ${ ! this . disabled && ! this . readonly ? 'cursor="pointer"' : '' } ${ this . readonly ? 'cursor="text"' : '' } ${ ! this . readonly && ! this . disabled } ${ this . disabled } ${ this . readonly } ` ; }
Create the Template for the contents
 @returns {string} The template
Create the Template for the contents @returns { string } The template