| 26 | } |
| 27 | |
| 28 | render() { |
| 29 | return html` |
| 30 | <div> |
| 31 | <div |
| 32 | style="display: flex; border-bottom: 1px solid #ddd; margin-bottom: 1.5rem" |
| 33 | > |
| 34 | <button |
| 35 | type="button" |
| 36 | style=${this.tabStyle('ui-variables')} |
| 37 | @click=${() => (this.activeTab = 'ui-variables')} |
| 38 | > |
| 39 | Via UI Variables |
| 40 | </button> |
| 41 | <button |
| 42 | type="button" |
| 43 | style=${this.tabStyle('cache')} |
| 44 | @click=${() => (this.activeTab = 'cache')} |
| 45 | > |
| 46 | Via Cache Manipulation |
| 47 | </button> |
| 48 | </div> |
| 49 | |
| 50 | ${ |
| 51 | this.activeTab === 'ui-variables' |
| 52 | ? html`<todo-list-ui></todo-list-ui>` |
| 53 | : html`<todo-list-cache></todo-list-cache>` |
| 54 | } |
| 55 | </div> |
| 56 | ` |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | customElements.define('approach-tabs', ApproachTabs) |