This namespace exposes BEL autocompletion capabilities.
Methods
-
staticbelhop.complete.annotationByType(input, cb, type)
-
Gets annotation completions for the given input and within a specific annotation type.
Name Type Description inputstring The annotation type’s prefix
cbbelhop.Callback Zero or more
belhop.AnnotationValuetypestring The annotation type
-
staticbelhop.complete.apply(completion, input) {string}
-
Applies a completion to the input and returns the result.
Name Type Description completionbelhop.Completion BEL API completion object
inputstring BEL expression to autocomplete.
Returns:
Type Description string Completed input string. -
staticbelhop.complete.expression(input, caretPosition, cb)
-
Gets expression completions for the given input.
Name Type Description inputstring BEL expression to autocomplete
caretPositionnumber optional caret position
cbbelhop.Callback Zero or more completions on success
-
staticbelhop.complete.getCompletions(input, caretPosition, cb)
-
Gets completions for the given input and returns the results.
Name Type Description inputstring BEL expression to autocomplete.
caretPositionnumber optional caret position
cbCallback Zero or more completions on success
- Deprecated
- Deprecated in favor of
belhop.complete.expression
- Deprecated in favor of