aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-01 19:39:30 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-06-01 19:39:30 -0500
commit6d50d57949a3ad4c40a2ff1c5e2e46f70a68731b (patch)
tree19b01e9194b466370abcde4cce01617ebea7973b /src
parent3f333751cd96d12a9302b839067a6c8fcddfdae9 (diff)
slight change to triggers
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/ScriptingBox.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/views/nodes/ScriptingBox.tsx b/src/client/views/nodes/ScriptingBox.tsx
index 72c92f00b..e45a3a38b 100644
--- a/src/client/views/nodes/ScriptingBox.tsx
+++ b/src/client/views/nodes/ScriptingBox.tsx
@@ -485,6 +485,22 @@ export class ScriptingBox extends ViewBoxAnnotatableComponent<FieldViewProps, Sc
dataProvider: (token: any) => this.handleFunc(this.rta.getCaretPosition()),
component: ({ entity: value }) => <div>{value}</div>,
output: (item: any) => "(" + this.returnParam(item) + ")",
+ },
+
+ ".": {
+ dataProvider: (token: any) => this.handleToken(token),
+ component: ({ entity: value }) =>
+ <div><div
+ style={{ fontSize: "14px" }}
+ onMouseEnter={() => this.setHovered(true)}
+ onMouseLeave={() => this.setHovered(false)}>
+ {value}
+ </div>
+ {this._hovered ? <div style={{ fontSize: "10px" }}>{this.getDescription(value)}</div> : (null)}
+ {this._hovered ? <div style={{ fontSize: "10px" }}>{this.getParams(value)}</div> : (null)}
+ </div>
+ ,
+ output: (item: any, trigger) => trigger + item.trim(),
}
}}