<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionToggleLink jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67157/evolutiontogglelink-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionToggleLink jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67157/evolutiontogglelink-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:28:16 GMT</pubDate><guid isPermaLink="false">cb4c3eb2-8cc4-498f-8918-63ea1a1b40f6</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67157/evolutiontogglelink-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_evolutionToggleLink" name="jQuery_fn_evolutionToggleLink"&gt;&lt;/a&gt;jQuery.fn.evolutionToggleLink&lt;/h3&gt;
&lt;p&gt;This plugin automates behavior associated to links that toggle state and are generally control state that is updated via an AJAX callback.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initializes the selected &amp;lt;a /&amp;gt; tag(s) as toggle links&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionToggleLink(options)
&lt;/code&gt;&lt;/pre&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;onHtml&lt;/code&gt;: the HTML to render within the &amp;lt;a /&amp;gt; tag when the toggle link is in the &amp;quot;on&amp;quot; state.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;offHtml&lt;/code&gt;: the HTML to render within the &amp;lt;a /&amp;gt; tag when the toggle link is in the &amp;quot;off&amp;quot; state.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;processingHtml&lt;/code&gt;:  the HTML to render within the &amp;lt;a /&amp;gt; tag when the toggle link is processing.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;changeState&lt;/code&gt;: the function, taking the state boolean as a parameter, that performs the requested state change.  It is expected that this function, when the state change is complete, will change the rendered value of the toggle link via the val method.  The toggle link will remain in the processing state until this callback occurs.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onCssClass&lt;/code&gt;: the CSS class to apply to the &amp;lt;a /&amp;gt; tag when it is in the &amp;quot;on&amp;quot; state.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;offCssClass&lt;/code&gt;: the CSS class to apply to the &amp;lt;a /&amp;gt; tag when it is in the &amp;quot;off&amp;quot; state.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;processingCssClass&lt;/code&gt;: the CSS class to apply to the &amp;lt;a /&amp;gt; tag when it is processing.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;onTitle&lt;/code&gt;: the value for the title attribute when the toggle link is in the &amp;quot;on&amp;quot; state.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;offTitle&lt;/code&gt;: the value for the title attribute when the toggle link is in the &amp;quot;off&amp;quot; state.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;processingTitle&lt;/code&gt;: the value for the title attribute when the toggle link is processing.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;val&lt;/code&gt;: the initial value for the toggle link.&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;Retrieves and/or sets the current value of the toggle link.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Returns the current state of the toggle link as a Boolean.
$(&amp;#39;SELECTOR&amp;#39;).evolutionToggleLink(&amp;#39;val&amp;#39;)

// Sets the rendered state of the toggle link to the specified Boolean state.
$(&amp;#39;SELECTOR&amp;#39;).evolutionToggleLink(&amp;#39;val&amp;#39;, state)
&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>