<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>glowPopUpMenu jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67168/glowpopupmenu-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>glowPopUpMenu jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67168/glowpopupmenu-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:28:25 GMT</pubDate><guid isPermaLink="false">bffbaf8c-8533-4106-9b60-d39a3e5f5c33</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67168/glowpopupmenu-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:25&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_glowPopUpMenu" name="jQuery_fn_glowPopUpMenu"&gt;&lt;/a&gt;jQuery.fn.glowPopUpMenu&lt;/h3&gt;
&lt;p&gt;Renders a nested pop up menu&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;where &amp;#39;SELECTOR&amp;#39; is a div element to be used as a container for the menu&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;groupCssClass&lt;/code&gt;: Class applied to a set of menu options
&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;itemCssClass&lt;/code&gt;: Class applied to an individual menu 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;itemSelectedCssClass&lt;/code&gt;: Class applied to a selected individual menu 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;itemExpandedCssClass&lt;/code&gt;: Class applied to a selected individual menu option when navigating the item&amp;#39;s children
&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;expandImageUrl&lt;/code&gt;: Image URL path to image displayed when an option has children
&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;expandImageWidth&lt;/code&gt;: Width of the expand image
&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;iconWidth&lt;/code&gt;: Width of icons shown in menu options
&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;iconHeight&lt;/code&gt;: Height of icons shown in menu options
&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;position&lt;/code&gt;: PopupPanel opening direction to use. any combination of left, right, up, down
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;updown&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;zIndex&lt;/code&gt;: z-index at which to render the panel
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;100&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;menuItems&lt;/code&gt;: Nested array of menu options.  Each menu option is, itself, represented by an array of the format:&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;id: unique id&lt;/li&gt;
&lt;li&gt;text: display text&lt;/li&gt;
&lt;li&gt;url: when provided, will redirect to URL when clicked&lt;/li&gt;
&lt;li&gt;target: target in which to open URL&lt;/li&gt;
&lt;li&gt;callback: optional callback to execute when clicked&lt;/li&gt;
&lt;li&gt;icon url&lt;/li&gt;
&lt;li&gt;childItems: optional array of child menu items&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;closeOnMouseOut&lt;/code&gt;: when true, the menu closes upon mouseout
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;true&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Events" name="Events"&gt;&lt;/a&gt;Events&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;glowPopUpMenuOpened&lt;/code&gt; - triggered when a menu is opened&lt;/li&gt;
&lt;li&gt;&lt;code&gt;glowPopUpMenuClosed&lt;/code&gt; - triggered when a menu is closed&lt;/li&gt;
&lt;li&gt;&lt;code&gt;glowPopUpMenuItemOver&lt;/code&gt; - triggered when mouse is over a menu option&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="isOpen" name="isOpen"&gt;&lt;/a&gt;isOpen&lt;/h4&gt;
&lt;p&gt;Returns whether the menu is currently open&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var isOpen = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpPanel(&amp;#39;isOpen&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="open" name="open"&gt;&lt;/a&gt;open&lt;/h4&gt;
&lt;p&gt;Opens an instance of a popup menu.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).glowPopUpPanel(&amp;#39;open&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="close" name="close"&gt;&lt;/a&gt;close&lt;/h4&gt;
&lt;p&gt;Closes an instance of a popup menu.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).glowPopUpPanel(&amp;#39;close&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="refresh" name="refresh"&gt;&lt;/a&gt;refresh&lt;/h4&gt;
&lt;p&gt;Refreshes the contents of a glowPopUpMenu after its options have been programmatically changes&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).glowPopUpPanel(&amp;#39;refresh&amp;#39;);
&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 menu item to the end of the menu&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var menuItem = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;createMenuItem&amp;#39;, {
    id: &amp;#39;new&amp;#39;,
    text: &amp;#39;This is a new item!&amp;#39;,
    onClick: functino(){ alert(&amp;quot;I&amp;#39;m new&amp;quot;); }
});
$(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;add&amp;#39;, menuItem);
&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 an instance of a menu item from the menu&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var menuItem = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;getById&amp;#39;, 5);
$(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;remove&amp;#39;, menuItem);
&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 menu item instance to the menu at a given index&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var menuItem = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;createMenuItem&amp;#39;, {
    id: &amp;#39;new&amp;#39;,
    text: &amp;#39;This is a new item!&amp;#39;,
    onClick: functino(){ alert(&amp;quot;I&amp;#39;m new&amp;quot;); }
});
$(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;insert&amp;#39;, menuItem, 4);
&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;Clears a menu of all options&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;clear&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="getById" name="getById"&gt;&lt;/a&gt;getById&lt;/h4&gt;
&lt;p&gt;Returns a menu item by its ID&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;getById&amp;#39;, 4);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="getByText" name="getByText"&gt;&lt;/a&gt;getByText&lt;/h4&gt;
&lt;p&gt;Returns a menu item by its display text&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;getById&amp;#39;, &amp;#39;Menu Option&amp;#39;);
&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;Returns a menu item by its index&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;getByIndex&amp;#39;, 3);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="getCurrent" name="getCurrent"&gt;&lt;/a&gt;getCurrent&lt;/h4&gt;
&lt;p&gt;Returns the currently-selected menu item&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;getCurrent&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="getCurrentByLevel" name="getCurrentByLevel"&gt;&lt;/a&gt;getCurrentByLevel&lt;/h4&gt;
&lt;p&gt;Returns the currently-selected menu item at a given menu level&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var item = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;getCurrentByLevel&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 menu items in a menu&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var count = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;count&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="createMenuItem" name="createMenuItem"&gt;&lt;/a&gt;createMenuItem&lt;/h4&gt;
&lt;p&gt;Creates a new menu item object suitable for adding or inserting into a menu&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;var menuItem = $(&amp;#39;SELECTOR&amp;#39;).glowPopUpMenu(&amp;#39;createMenuItem&amp;#39;, {
    id: &amp;#39;new&amp;#39;,
    text: &amp;#39;This is a new item!&amp;#39;,
    onClick: functino(){ alert(&amp;quot;I&amp;#39;m new&amp;quot;); }
});
&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>