<?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/13/w/api-documentation/75709/autocomplete-composer-plugin</link><description>&lt;p&gt;&lt;span&gt;Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.&lt;/span&gt;&lt;/p&gt;</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/13/w/api-documentation/75709/autocomplete-composer-plugin</link><pubDate>Fri, 08 Mar 2024 17:51:01 GMT</pubDate><guid isPermaLink="false">0c43b059-bf9a-4170-bc38-d350c236de1e</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75709/autocomplete-composer-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 03/08/2024 17:51:01&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&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;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>