aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Key.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-01-17 04:27:26 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-01-17 04:27:26 -0500
commit7943126ce9694af8e53d2997481c18ca0c17754c (patch)
tree7c3563e9a07345d1a110e8abb5b8563a3aec90fa /src/fields/Key.ts
parent89204d74d2a5014b4e241973b1bdb8461ed4f78c (diff)
Added editable text and image notes
Diffstat (limited to 'src/fields/Key.ts')
-rw-r--r--src/fields/Key.ts12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/fields/Key.ts b/src/fields/Key.ts
index 42881c8a6..cd67e0a00 100644
--- a/src/fields/Key.ts
+++ b/src/fields/Key.ts
@@ -1,13 +1,18 @@
import { Field } from "./Field"
import { Utils } from "../Utils";
+import { observable } from "mobx";
export class Key extends Field {
+ private name:string;
+
get Name():string {
return this.name;
}
- constructor(private name:string){
+ constructor(name:string){
super(Utils.GenerateDeterministicGuid(name));
+
+ this.name = name;
}
TrySetValue(value: any): boolean {
@@ -32,6 +37,7 @@ export namespace KeyStore {
export let Width = new Key("Width");
export let Height = new Key("Height");
export let Data = new Key("Data");
- export let View = new Key("View");
- export let ViewProps = new Key("ViewProps");
+ export let Layout = new Key("Layout");
+ export let LayoutKeys = new Key("LayoutKeys");
+ export let LayoutFields = new Key("LayoutFields");
} \ No newline at end of file