egroupware/api/js/etemplate/et2-textbox.ts
nathan 5fee9fcafe Make et2-textbox as a WebComponent
Not all attributes are handled yet, but value cycle is working
2021-07-22 14:54:10 -06:00

51 lines
1.1 KiB
TypeScript

/**
* 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
*/
import {css,html} from "../../../node_modules/@lion/core/index.js";
import {LionInput} from "../../../node_modules/@lion/input/index.js";
import {Et2InputWidget} from "./et2_core_inputWidget";
import {Et2Widget} from "./et2_core_inheritance";
export class Et2Textbox extends Et2InputWidget(Et2Widget(LionInput))
{
static get styles() {
return [
...super.styles,
css`
/* Custom CSS */
`,
];
}
static get properties() {
return {
...super.properties,
value: {attribute: true},
onclick: {type: Function}
}
}
constructor()
{
debugger;
super();
}
connectedCallback()
{
super.connectedCallback();
}
}
customElements.define("et2-textbox",Et2Textbox);