egroupware_official/api/js/etemplate/Et2Textarea/Et2TextareaReadonly.ts

18 lines
505 B
TypeScript
Raw Normal View History

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
{
constructor()
{
super();
this.noLang = true; // never translation r/o textareas
}
}
// 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);