mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Readonly textbox
This commit is contained in:
parent
20c82b6d72
commit
82277c802b
23
api/js/etemplate/Et2Textbox/Et2TextboxReadonly.ts
Normal file
23
api/js/etemplate/Et2Textbox/Et2TextboxReadonly.ts
Normal file
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* EGroupware eTemplate2 - Readonly Textbox widget (WebComponent)
|
||||
*
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @package etemplate
|
||||
* @subpackage api
|
||||
* @link https://www.egroupware.org
|
||||
* @author Nathan Gray
|
||||
*/
|
||||
|
||||
|
||||
import {Et2Description} from "../Et2Description/Et2Description";
|
||||
|
||||
/**
|
||||
* A readonly textbox is just a description. You should use that instead, but here it is.
|
||||
*/
|
||||
export class Et2TextboxReadonly 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-textbox_ro", Et2TextboxReadonly);
|
@ -34,6 +34,7 @@ import './Et2Select/Et2Select';
|
||||
import './Et2Select/Et2SelectReadonly';
|
||||
import './Et2Textarea/Et2Textarea';
|
||||
import './Et2Textbox/Et2Textbox';
|
||||
import './Et2Textbox/Et2TextboxReadonly';
|
||||
import './Et2Colorpicker/Et2Colorpicker';
|
||||
/* Include all widget classes here, we only care about them registering, not importing anything*/
|
||||
import './et2_widget_vfs'; // Vfs must be first (before et2_widget_file) due to import cycle
|
||||
|
Loading…
Reference in New Issue
Block a user