src/widgets/tube-base/tube-base.js
/**
   * ES template tag used for parsing the
   * element's innerHTML. Use sparingly only
   * when you need a total rerender
   * @param {array<string>} strings
   * @param  {array<any>} values
   * @return void
   */
ES template tag used for parsing the
element's innerHTML. Use sparingly only
when you need a total rerender
@param {array} strings
@param  {array} values
@return void
ES template tag used for parsing the element ' s innerHTML . Use sparingly only when you need a total rerender @param { array } strings @param { array } values @return void
html(strings, ...values) {
    const innerHTML = strings.map((string, index) => {
      return `${string ? string : ''}${values[index] !== undefined ? values[index] : ''}`;
    }
    ).join('');
    this.root.innerHTML = innerHTML;
    Array.from(this.root.querySelectorAll('[data-ref]'))
      .forEach(ref => this.refs.set(ref.dataset.ref, ref));
    this.postRender();
  }
html ( strings , ... values ) { const innerHTML = strings . map ( ( string , index ) => { return ` ${ string ? string : '' } ${ values [ index ] !== undefined ? values [ index ] : '' } ` ; } ) . join ( '' ) ; this . root . innerHTML = innerHTML ; Array . from ( this . root . querySelectorAll ( '[data-ref]' ) ) . forEach ( ref => this . refs . set ( ref . dataset . ref , ref ) ) ; this . postRender ( ) ; }
ES template tag used for parsing the
 element's innerHTML.
ES template tag used for parsing the element ' s innerHTML .