Make elements default constructible, testing wip

This commit is contained in:
barsdeveloper
2022-12-24 15:29:12 +01:00
parent 7ed36f21e5
commit c3ab6478b0
53 changed files with 992 additions and 712 deletions

View File

@@ -27,9 +27,18 @@ export default class InputElement extends IElement {
}
constructor() {
super({}, new InputTemplate())
super()
this.singleLine = false
this.selectOnFocus = true
this.blurOnEnter = true
super.initialize({}, new InputTemplate())
}
static newObject() {
return new InputElement()
}
initialize() {
// Initialized in the constructor, this method does nothing
}
}