mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 12:34:57 +01:00
ebaebf65ca
ToDo: implement allow_path and trailing slash attributes for et2-url
37 lines
822 B
TypeScript
37 lines
822 B
TypeScript
/**
|
|
* EGroupware eTemplate2 - Fax url/send widget
|
|
*
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
* @package api
|
|
* @link https://www.egroupware.org
|
|
* @author Ralf Becker
|
|
*/
|
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
import {Et2UrlFax} from "./Et2UrlFax";
|
|
import {Et2UrlReadonly} from "./Et2UrlReadonly";
|
|
|
|
/**
|
|
* @customElement et2-url-fax_ro
|
|
*/
|
|
export class Et2UrlFaxReadonly extends Et2UrlReadonly
|
|
{
|
|
constructor()
|
|
{
|
|
super();
|
|
}
|
|
|
|
transformAttributes(attrs)
|
|
{
|
|
if (typeof attrs.onclick === 'undefined')
|
|
{
|
|
attrs.onclick = () =>
|
|
{
|
|
Et2UrlFax.action(this.value);
|
|
}
|
|
}
|
|
super.transformAttributes(attrs);
|
|
}
|
|
}
|
|
// @ts-ignore TypeScript is not recognizing that this is a LitElement
|
|
customElements.define("et2-url-fax_ro", Et2UrlFaxReadonly); |