<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>glowLookUptextBox jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75794/glowlookuptextbox-jquery-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>glowLookUptextBox jQuery Plugin</title><link>https://community.telligent.com/community/13/w/api-documentation/75794/glowlookuptextbox-jquery-plugin</link><pubDate>Fri, 08 Mar 2024 17:51:45 GMT</pubDate><guid isPermaLink="false">6c04b968-76b1-4918-8f1f-a6ec5798615c</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75794/glowlookuptextbox-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 03/08/2024 17:51:45&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.fn.glowLookUptextBox&lt;/h3&gt;
&lt;p&gt;This plugin presents an auto-completing textbox that allows for single or multiple selections&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initiate a selection of text input elements to be lookup text boxes&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;selector&amp;#39;).glowLookUpTextBox(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where selector contains &lt;code&gt;&amp;lt;input type=&amp;quot;text&amp;quot; /&amp;gt;&lt;/code&gt; element(s) and &lt;code&gt;options&lt;/code&gt; is an optional object argument&lt;/p&gt;
&lt;h3&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;delimiter&lt;/code&gt;: delimiter to insert between selected items when multiple items are allowed and to use when
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;&amp;#39;,&amp;#39;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;allowDuplicates&lt;/code&gt;: boolean value of whether or not multiple same items can be selected
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;false&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;maxValues&lt;/code&gt;: maximum number of selectable items per control
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;onGetLookUps&lt;/code&gt;: callback function which is passed both the current lookup text box instance and the currently-typed text.  Typically used to perform an ajax callback and then populate the textbox with available matching options.
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;null&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;emptyHtml&lt;/code&gt;: string displayed when no selection is made
&lt;ul&gt;
&lt;li&gt;default: &lt;em&gt;empty string&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;selectedLookUpsHtml&lt;/code&gt;: array of strings to pre-populate as selected
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;[]&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;deleteImageUrl&lt;/code&gt;: URL of image to render within selected options which acts as a trigger for deleting the selected option
&lt;ul&gt;
&lt;li&gt;default: &lt;em&gt;empty string&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;lookUpPopUpHeight&lt;/code&gt;: Height, in pixels of the suggestion pop-up
&lt;ul&gt;
&lt;li&gt;default: 200&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Events&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;glowLookUpTextBoxChange&lt;/code&gt;: triggered when the value is changed&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Methods&lt;/h3&gt;
&lt;h4&gt;disabled&lt;/h4&gt;
&lt;p&gt;Gets and/or sets whether the lookup text box is disabled&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var disabled = $(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;disabled&amp;#39;);
$(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;disabled&amp;#39;, false);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;updateSuggestions&lt;/h4&gt;
&lt;p&gt;Sets the current list of autocompletion suggestions.  Often used after a successful Ajax callback.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var suggestions = [&amp;quot;abc&amp;quot;, &amp;quot;def&amp;quot;, &amp;quot;ghi&amp;quot;];
$(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;updateSuggestions&amp;#39;, suggestions);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;removeByIndex&lt;/h4&gt;
&lt;p&gt;Removes a current selection by index&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;removeByIndex&amp;#39;, 3);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;removeByValue&lt;/h4&gt;
&lt;p&gt;Removes a current selection by value&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;removeByValue&amp;#39;, &amp;#39;value&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;add&lt;/h4&gt;
&lt;p&gt;Adds a selected value&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var lookup = $(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;createLookup&amp;#39;, &amp;#39;value&amp;#39;, &amp;#39;selected html&amp;#39;, &amp;#39;suggested html&amp;#39;, true);
$(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;removeByValue&amp;#39;, lookup);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;getByIndex&lt;/h4&gt;
&lt;p&gt;Gets the a selected lookup by index&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var selectedLookup = $(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;getByIndex&amp;#39;, 2);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;count&lt;/h4&gt;
&lt;p&gt;Gets the count of selected lookups&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var count = $(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;count&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;getCurrentSearchText&lt;/h4&gt;
&lt;p&gt;Gets the current search text&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var text = $(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;getCurrentSearchText&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;createLookUp&lt;/h4&gt;
&lt;p&gt;Manually creates a new lookup object suitable for adding as a selected lookup&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var lookup = $(&amp;#39;selector&amp;#39;).glowLookUpTextBox(&amp;#39;createLookup&amp;#39;, &amp;#39;value&amp;#39;, &amp;#39;selected html&amp;#39;, &amp;#39;suggested html&amp;#39;, true);
&lt;/code&gt;&lt;/pre&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>