UI for adding rows and columns.

This commit is contained in:
Mal
2020-02-09 00:29:46 +01:00
parent de3c73a508
commit d43cd56d65
14 changed files with 317 additions and 12 deletions

View File

@@ -0,0 +1,28 @@
import Dialog from "./Dialog.js";
import TilorswiftAddRowsEvent from "../events/TilorswiftAddRowsEvent.js";
export default class DialogAddRows extends Dialog
{
constructor() {
super();
this.inputPosition = this.createInputNumber('Einfügen vor Zeile');
this.inputRows = this.createInputNumber('Anzahl Zeilen');
this.buttonOk = this.createButton('OK');
this.buttonOk.addEventListener(
'click',
() => {
window.dispatchEvent(new TilorswiftAddRowsEvent(this.getPosition(), this.getRowsCount()));
}
)
}
getPosition()
{
return this.inputPosition.value;
}
getRowsCount()
{
return this.inputRows.value;
}
}