<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>autocomplete Composer Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67133/autocomplete-composer-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>autocomplete Composer Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67133/autocomplete-composer-plugin</link><pubDate>Tue, 19 Nov 2019 20:27:46 GMT</pubDate><guid isPermaLink="false">363d6e26-dcc8-4fa1-a2c9-40a11f35dd9a</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67133/autocomplete-composer-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:27:46&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="Autocomplete_Composer_Plugin" name="Autocomplete_Composer_Plugin"&gt;&lt;/a&gt;Autocomplete Composer Plugin&lt;/h3&gt;
&lt;p&gt;[[evolutionComposer jQuery Plugin|Composer]] plugin which adds generic suggestion support to the composer.&lt;/p&gt;
&lt;p&gt;Like other [[evolutionComposer jQuery Plugin|Composer]] plugins, it can be declared in the list of plugins when instantiating a composer&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;textarea.selector&amp;#39;).evolutionComposer({
    plugins: ['autocomplete']
    // extra options supported by the autocomplete plugin
});
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;&lt;a id="Options" name="Options"&gt;&lt;/a&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;onSuggestionList&lt;/code&gt;: function which is called to asynchronously provide suggested type-ahead results during autocompletion
&lt;ul&gt;
&lt;li&gt;
parameters:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;query&lt;/code&gt;: string query&lt;/li&gt;
&lt;li&gt;&lt;code&gt;complete&lt;/code&gt;: function to be called to pass the results back to the composer. Should be passed an array of objects with at least a &lt;code&gt;viewHtml&lt;/code&gt; propery&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;onSuggestionSelect&lt;/code&gt;: function which is called when a suggestion is selected.
&lt;ul&gt;
&lt;li&gt;
parameters:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;suggestion&lt;/code&gt;: suggestion object from the call to &lt;code&gt;onSuggestionList&lt;/code&gt; matching the selected item&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>