mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 14:24:47 +08:00
Input system cleanup
This commit is contained in:
@@ -1,9 +1,28 @@
|
||||
import InputTemplate from "../template/InputTemplate"
|
||||
import Utility from "../Utility"
|
||||
import IElement from "./IElement"
|
||||
|
||||
export default class InputElement extends IElement {
|
||||
|
||||
static properties = {
|
||||
...super.properties,
|
||||
singleLine: {
|
||||
type: Boolean,
|
||||
attribute: "data-single-line",
|
||||
converter: Utility.booleanConverter,
|
||||
reflect: true,
|
||||
},
|
||||
blurOnEnter: {
|
||||
type: Boolean,
|
||||
attribute: "data-blur-enter",
|
||||
converter: Utility.booleanConverter,
|
||||
reflect: true,
|
||||
},
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super({}, new InputTemplate())
|
||||
this.singleLine = false
|
||||
this.blurOnEnter = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user