Class EditorAutoSuggest

EditorAutoSuggest

Class Summary
Constructor Attributes Constructor Name and Description
 
An Auto Suggest class for suggestion for user edit in the Expression editor, It can suggest the next available variables and show available ranges in the workbook, and context based ranges or variables.

Method Summary

Class Detail

EditorAutoSuggest()
An Auto Suggest class for suggestion for user edit in the Expression editor, It can suggest the next available variables and show available ranges in the workbook, and context based ranges or variables.
require('EditorAutoSuggest')

Field Detail

<static> EditorAutoSuggest.setUpEditorCommand
The method is will set up the basic editor command, so that the user can edit or update anything with shortcurt keys.

Method Detail

  • <static> EditorAutoSuggest.getCompletions(editor, session, pos, prefix, callback)
    The method will parse the existing expression and evaluates teh expression parsed, so that it can assume what could be the next token for this. Accordingly it will suggest a good range of items.
    Parameters:
    editor
    The Editor Object, where it can access the entire editor context.
    session
    pos
    @Integer The position where the editing is happening
    prefix
    @String The prefix string for the editing context.
    callback
    @Function, The function need to be called back once the suggestion is completed
  • <static> EditorAutoSuggest.onEditorValueChange(editor)
    The method is a callback function , once any data in tghe editor got changed, teh function will be called and it will show the error messages on the left hand panel.
    Parameters:
    editor
    The Editor Object, where it can access the entire editor context.
    Returns:
    void