Implement readonly textarea as description

This commit is contained in:
nathan 2022-09-19 13:28:20 -06:00
parent 606e2688d4
commit f43b641127
2 changed files with 13 additions and 0 deletions

View File

@ -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);

View File

@ -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';