Autocomplete Composer Plugin
Composer plugin which adds generic suggestion support to the composer.
Like other Composer plugins, it can be declared in the list of plugins when instantiating a composer
$('textarea.selector').evolutionComposer({
plugins: ['autocomplete']
// extra options supported by the autocomplete plugin
});
Options
-
onSuggestionList: function which is called to asynchronously provide suggested type-ahead results during autocompletion-
parameters:
query: string querycomplete: function to be called to pass the results back to the composer. Should be passed an array of objects with at least aviewHtmlpropery
-
parameters:
-
onSuggestionSelect: function which is called when a suggestion is selected.-
parameters:
suggestion: suggestion object from the call toonSuggestionListmatching the selected item
-
parameters: