Corkboard/source/js/widgets/textbox.js
Alexander Bass 47d80a88df init
2023-04-23 15:51:14 -04:00

11 lines
367 B
JavaScript

import { pageWidget } from "../pageWidget.js";
export class Textbox extends pageWidget {
constructor(text = "") {
super("textarea", "textbox", { respectMargins: true, fillWidth: true, fillHeight: true, centerWidth: false, centerHeight: false, width: null, height: null }, true);
this.el.spellcheck = false;
this.el.value = text;
}
}