mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-07 08:07:29 +08:00
Make elements default constructible, testing wip
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user