2021-07-22 22:54:10 +02:00
|
|
|
/**
|
|
|
|
* EGroupware eTemplate2 - Button widget
|
|
|
|
*
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2021-08-12 18:32:05 +02:00
|
|
|
import {css, html} from "@lion/core";
|
|
|
|
import {LionInput} from "@lion/input";
|
2021-07-22 22:54:10 +02:00
|
|
|
import {Et2InputWidget} from "./et2_core_inputWidget";
|
2021-08-12 18:32:05 +02:00
|
|
|
import {Et2Widget} from "./Et2Widget";
|
2021-07-22 22:54:10 +02:00
|
|
|
|
2021-08-10 23:02:52 +02:00
|
|
|
export class Et2Textbox extends Et2InputWidget(Et2Widget(LionInput))
|
2021-07-22 22:54:10 +02:00
|
|
|
{
|
|
|
|
|
2021-08-10 23:02:52 +02:00
|
|
|
static get styles()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
...super.styles,
|
|
|
|
css`
|
2021-07-22 22:54:10 +02:00
|
|
|
/* Custom CSS */
|
|
|
|
`,
|
2021-08-10 23:02:52 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
static get properties()
|
|
|
|
{
|
|
|
|
return {
|
|
|
|
...super.properties,
|
|
|
|
value: {attribute: true},
|
|
|
|
onclick: {type: Function}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
constructor()
|
|
|
|
{
|
|
|
|
debugger;
|
|
|
|
super();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
connectedCallback()
|
|
|
|
{
|
|
|
|
super.connectedCallback();
|
|
|
|
|
|
|
|
}
|
2021-07-22 22:54:10 +02:00
|
|
|
}
|
2021-08-10 23:02:52 +02:00
|
|
|
|
|
|
|
customElements.define("et2-textbox", Et2Textbox);
|