We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e66dc3 commit 2213c50Copy full SHA for 2213c50
src/public/app/components/component.ts
@@ -18,7 +18,7 @@ export class TypedComponent<ChildT extends TypedComponent<ChildT>> {
18
children: ChildT[];
19
initialized: Promise<void> | null;
20
parent?: TypedComponent<any>;
21
- position!: number;
+ _position!: number;
22
23
constructor() {
24
this.componentId = `${this.sanitizedClassName}-${utils.randomString(8)}`;
@@ -31,6 +31,14 @@ export class TypedComponent<ChildT extends TypedComponent<ChildT>> {
31
return this.constructor.name.replace(/[^A-Z0-9]/gi, "_");
32
}
33
34
+ get position() {
35
+ return this._position;
36
+ }
37
+
38
+ set position(newPosition: number) {
39
+ this._position = newPosition;
40
41
42
setParent(parent: TypedComponent<any>) {
43
this.parent = parent;
44
return this;
0 commit comments