mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-19 20:37:36 +08:00
Make elements default constructible, testing wip
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
import ColorSliderTemplate from "../template/ColorSliderTemplate"
|
||||
import IDraggableControlElement from "./IDraggableControlElement"
|
||||
|
||||
/** @typedef {import("../template/IDraggableControlTemplate").default} IDraggableControlTemplate */
|
||||
|
||||
/** @extends {IDraggableControlElement<Object, ColorSliderTemplate>} */
|
||||
export default class ColorSliderElement extends IDraggableControlElement {
|
||||
|
||||
constructor() {
|
||||
super({}, new ColorSliderTemplate())
|
||||
super()
|
||||
super.initialize({}, new ColorSliderTemplate())
|
||||
}
|
||||
|
||||
static newObject() {
|
||||
return new ColorSliderElement()
|
||||
}
|
||||
|
||||
initialize() {
|
||||
// Initialized in the constructor, this method does nothing
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user