<?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/11/w/api-documentation/67162/glowdropdownlist-jquery-plugin</link><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/11/w/api-documentation/67162/glowdropdownlist-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:28:16 GMT</pubDate><guid isPermaLink="false">3163f9d8-6c47-44ee-940b-3719771b5582</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67162/glowdropdownlist-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:16&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_glowDropDownList" name="jQuery_fn_glowDropDownList"&gt;&lt;/a&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;&lt;a id="Usage" name="Usage"&gt;&lt;/a&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;&lt;a id="Options" name="Options"&gt;&lt;/a&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;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="val" name="val"&gt;&lt;/a&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;&lt;a id="selectedIndex" name="selectedIndex"&gt;&lt;/a&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;&lt;a id="getText" name="getText"&gt;&lt;/a&gt;getText&lt;/h4&gt;
&lt;p&gt;Gets the text of the currently selected item&lt;/p&gt;
&lt;h4&gt;&lt;a id="disabled" name="disabled"&gt;&lt;/a&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;&lt;a id="add" name="add"&gt;&lt;/a&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;&lt;a id="remove" name="remove"&gt;&lt;/a&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;&lt;a id="clear" name="clear"&gt;&lt;/a&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;&lt;a id="insert" name="insert"&gt;&lt;/a&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;&lt;a id="getByIndex" name="getByIndex"&gt;&lt;/a&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;&lt;a id="count" name="count"&gt;&lt;/a&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;&lt;a id="createItem" name="createItem"&gt;&lt;/a&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>