From 6d50d57949a3ad4c40a2ff1c5e2e46f70a68731b Mon Sep 17 00:00:00 2001
From: anika-ahluwalia <anika.ahluwalia@gmail.com>
Date: Mon, 1 Jun 2020 19:39:30 -0500
Subject: slight change to triggers

---
 src/client/views/nodes/ScriptingBox.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

(limited to 'src/client/views/nodes/ScriptingBox.tsx')

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(),
                 }
 
             }}
-- 
cgit v1.2.3-70-g09d2

