Namespace: complete

belhop. complete

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
input string

The annotation type’s prefix

cb belhop.Callback

Zero or more belhop.AnnotationValue

type string

The annotation type

staticbelhop.complete.apply(completion, input) {string}

Applies a completion to the input and returns the result.

Name Type Description
completion belhop.Completion

BEL API completion object

input string

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
input string

BEL expression to autocomplete

caretPosition number

optional caret position

cb belhop.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
input string

BEL expression to autocomplete.

caretPosition number

optional caret position

cb Callback

Zero or more completions on success

Deprecated