From 6d50d57949a3ad4c40a2ff1c5e2e46f70a68731b Mon Sep 17 00:00:00 2001 From: anika-ahluwalia 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') 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 this.handleFunc(this.rta.getCaretPosition()), component: ({ entity: value }) =>
{value}
, output: (item: any) => "(" + this.returnParam(item) + ")", + }, + + ".": { + dataProvider: (token: any) => this.handleToken(token), + component: ({ entity: value }) => +
this.setHovered(true)} + onMouseLeave={() => this.setHovered(false)}> + {value} +
+ {this._hovered ?
{this.getDescription(value)}
: (null)} + {this._hovered ?
{this.getParams(value)}
: (null)} +
+ , + output: (item: any, trigger) => trigger + item.trim(), } }} -- cgit v1.2.3-70-g09d2