Pierre Villard created NIFI-3790:
------------------------------------

             Summary: Expression language auto-completion to add parenthesis
                 Key: NIFI-3790
                 URL: https://issues.apache.org/jira/browse/NIFI-3790
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core UI
            Reporter: Pierre Villard
            Priority: Minor


When using auto completion with expression language it will add the function 
name based on the available list of functions. It would be nice if, when the 
function is added, parenthesis are also added at the end of the function name.

Instead of having

{code}
${now}
{code}
and manually adding the parenthesis, directly have:

{code}
${now()}
{code}

Had a quick look at {{nfel.js}} and not sure if this can easily be done (I 
tried to add the parenthesis in line 838 but it impacts some other parts of the 
code and will show parenthesis in the tool tip). It looks like it would be 
easier to upgrade {{codemirror}} code to be able to use {{hint}} function as 
explained here: https://codemirror.net/doc/manual.html#addon_show-hint

I'll let UI gurus give their thoughts.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to