@zentara/plugin-suggestions
API Reference
API Reference of the suggestions plugin
Properties
@zentara/plugin-suggestions
provides the following properties:
The triggers to show suggestions.
Example: ['{', '{{', '{{.']
The suggestions to show.
Example: ['foo', 'bar', 'baz']
The transform function to transform the suggestion.
When the user selects a suggestion, the transform function is called with the selected suggestion and the transform function returns the transformed suggestion.
example
The render function to render the suggestion. User can decide how to show the suggestion list.
example
The maximum number of suggestions to show.
Example: 10
The offset of the suggestions list.
Example: 8