<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>glowDropDownList jQuery Plugin</title><link>https://community.telligent.com/community/12/w/api-documentation/71716/glowdropdownlist-jquery-plugin</link><description>Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.</description><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>glowDropDownList jQuery Plugin</title><link>https://community.telligent.com/community/12/w/api-documentation/71716/glowdropdownlist-jquery-plugin</link><pubDate>Fri, 15 Jan 2021 21:46:02 GMT</pubDate><guid isPermaLink="false">a047a8a2-8319-44ed-bda0-e645485be801</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/12/w/api-documentation/71716/glowdropdownlist-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 01/15/2021 21:46:02&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.fn.glowDropDownList&lt;/h3&gt;
&lt;p&gt;This plugin gracefully enhances a standard HTML select input with the ability to be fully styled with custom markup&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initiate a selection of select elements to be drop down lists&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;selector&amp;#39;).glowDropDownList(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where selector contains &lt;code&gt;&amp;lt;select&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;selectedItemWidth&lt;/code&gt;: pixel width of a currently-selected item
&lt;ul&gt;
&lt;li&gt;default: 200&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;selectedItemHeight&lt;/code&gt;: pixel height of a currently-selected item
&lt;ul&gt;
&lt;li&gt;default: 32&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;itemsWidth&lt;/code&gt;: pixel width of items
&lt;ul&gt;
&lt;li&gt;default: 200&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;itemsHeight&lt;/code&gt;: pixel height of items
&lt;ul&gt;
&lt;li&gt;default: 300&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;itemsHtml&lt;/code&gt;: array of html fragment representations of elements.  When provided, elements from this array will be used to render selectable options.
&lt;ul&gt;
&lt;li&gt;default: []&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;showHtmlWhenSelected&lt;/code&gt;: boolean value of whether or not to show the html-representation of the selected option as the currently selected item
&lt;ul&gt;
&lt;li&gt;default: true&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;buttonImageUrl&lt;/code&gt;: image path to use for a drop down arrow
&lt;ul&gt;
&lt;li&gt;default: Evolution-provided button image&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;className&lt;/code&gt;: CSS class name to apply to the rendered drop down list
&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;activeClassName&lt;/code&gt;: CSS class name to apply to the rendered drop down list when options are shown
&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;/ul&gt;
&lt;h3&gt;Methods&lt;/h3&gt;
&lt;h4&gt;val&lt;/h4&gt;
&lt;p&gt;Gets and/or sets the current value of the drop down list&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var value = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;val&amp;#39;);
$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;val&amp;#39;, &amp;#39;someValue&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;selectedIndex&lt;/h4&gt;
&lt;p&gt;Gets and/or sets the current index of the selected item in the drop down list.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var index = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;selectedIndex&amp;#39;);
$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;selectedIndex&amp;#39;, 5);       // will set the value
$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;selectedIndex&amp;#39;, 5, true); // will set the value and process change events
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;getText&lt;/h4&gt;
&lt;p&gt;Gets the text of the currently selected item&lt;/p&gt;
&lt;h4&gt;disabled&lt;/h4&gt;
&lt;p&gt;Gets and/or sets whether the ability to select items is disabled&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var disabled = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;disabled&amp;#39;);
$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;disabled&amp;#39;, true);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;add&lt;/h4&gt;
&lt;p&gt;Adds a new DropDownList item to list of selectable options&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;createItem&amp;#39;, { value: &amp;#39;some value&amp;#39;, text: &amp;#39;some text&amp;#39;, html: &amp;#39;html to display&amp;#39;);
$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;add&amp;#39;, item));
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;remove&lt;/h4&gt;
&lt;p&gt;Removes a DropDownList item from the selectable options&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;remove&amp;#39;, item);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;clear&lt;/h4&gt;
&lt;p&gt;Removes all selectable options from the DropDownList&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;clear&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;insert&lt;/h4&gt;
&lt;p&gt;Adds a new DropDownList item to list of selectable options at a specific index position&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;createItem&amp;#39;, { value: &amp;#39;some value&amp;#39;, text: &amp;#39;some text&amp;#39;, html: &amp;#39;html to display&amp;#39;);
$(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;add&amp;#39;, item, 2);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;getByIndex&lt;/h4&gt;
&lt;p&gt;Gets a DropDownList item at a given position index&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;getByIndex&amp;#39; 2);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;count&lt;/h4&gt;
&lt;p&gt;Returns the number of selectable items&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var count = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;count&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;createItem&lt;/h4&gt;
&lt;p&gt;Creates a new DropDownList item which can then be inserted or added&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;selector&amp;#39;).glowDropDownList(&amp;#39;createItem&amp;#39;, { value: &amp;#39;some value&amp;#39;, text: &amp;#39;some text&amp;#39;, html: &amp;#39;html to display&amp;#39;);
&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>