diff options
author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-01 19:39:30 -0500 |
---|---|---|
committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-06-01 19:39:30 -0500 |
commit | 6d50d57949a3ad4c40a2ff1c5e2e46f70a68731b (patch) | |
tree | 19b01e9194b466370abcde4cce01617ebea7973b | |
parent | 3f333751cd96d12a9302b839067a6c8fcddfdae9 (diff) |
slight change to triggers
-rw-r--r-- | src/client/views/nodes/ScriptingBox.tsx | 16 |
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(), } }} |