Skip to content

Latest commit

 

History

History
41 lines (40 loc) · 1.37 KB

sample.md

File metadata and controls

41 lines (40 loc) · 1.37 KB

nav layout for picocss

    <nav class="tabs" style="margin-bottom: 20px;">
      <ul>
        <li>PlumeJs</li>
      </ul>
      <ul ref=${(node) => {
        this.tabsContainer = node;
      }}>
        <li class="${this.routePath === '/home' ? 'is-active' : ''}">
          <a href="#" onclick=${(e) => this.navigate(e, '/home')}
            >Items Route</a>
        </li>
        <li class="${this.routePath === '/persons' ? 'is-active' : ''}">
          <a href="#" onclick=${(e) => this.navigate(e, '/persons')}
            >Persons Route</a>
        </li>
        <li class="${this.routePath === '/form' ? 'is-active' : ''}">
          <a href="#" onclick=${(e) =>
            this.navigate(e, '/form')}>Form Route</a>
        </li>
        <li class="${
          this.routePath === '/calculator' ? 'is-active' : ''
        }">
          <a href="#" onclick=${(e) =>
            this.navigate(e, '/calculator', {
              name: 'kiran',
            })}>Calculator Route</a>
        </li>
        <li class="${this.routePath === '/controls' ? 'is-active' : ''}">
          <a href="#" onclick=${(e) =>
            this.navigate(e, '/controls')}>Controls</a>
        </li>
        <li class="${this.routePath === '/editor' ? 'is-active' : ''}">
          <a href="#" onclick=${(e) =>
            this.navigate(e, '/editor')}>Editor</a>
        </li>
      </ul>
    </nav>