From 2571d90691480d7783876df582d40a2605f37e91 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 15 Jul 2022 09:30:12 -0600 Subject: [PATCH] Follow my own advice and split out content into an overridable sub-template in case we need it --- api/js/etemplate/Et2Select/Tag/Et2Tag.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/Et2Select/Tag/Et2Tag.ts b/api/js/etemplate/Et2Select/Tag/Et2Tag.ts index 04315e9cf9..ad6ebc0c73 100644 --- a/api/js/etemplate/Et2Select/Tag/Et2Tag.ts +++ b/api/js/etemplate/Et2Select/Tag/Et2Tag.ts @@ -95,9 +95,7 @@ export class Et2Tag extends Et2Widget(SlTag) - - - + ${this._contentTemplate()} ${this.removable ? html` `; } + + _contentTemplate() : TemplateResult + { + return html` + + + `; + } } customElements.define("et2-tag", Et2Tag); \ No newline at end of file