diff --git a/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts b/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts new file mode 100644 index 0000000000..e098d75b19 --- /dev/null +++ b/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts @@ -0,0 +1,12 @@ +import {Et2Description} from "../Et2Description/Et2Description"; + +/** + * A readonly textbox is just a description. You should use that instead, but here it is. + */ +export class Et2TextareaReadonly extends Et2Description +{ +} + +// We can't bind the same class to a different tag +// @ts-ignore TypeScript is not recognizing that Et2Textbox is a LitElement +customElements.define("et2-textarea_ro", Et2TextareaReadonly); \ No newline at end of file diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index 6f18b47932..9c29a91043 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -80,6 +80,7 @@ import './Et2Select/Tag/Et2ThumbnailTag'; import './Et2Spinner/Et2Spinner'; import './Et2Switch/Et2Switch'; import './Et2Textarea/Et2Textarea'; +import './Et2Textarea/Et2TextareaReadonly'; import './Et2Textbox/Et2Textbox'; import './Et2Textbox/Et2TextboxReadonly'; import './Et2Textbox/Et2Number';