<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionScrollable jQuery Plugin</title><link>https://community.telligent.com/community/12/w/api-documentation/71702/evolutionscrollable-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>evolutionScrollable jQuery Plugin</title><link>https://community.telligent.com/community/12/w/api-documentation/71702/evolutionscrollable-jquery-plugin</link><pubDate>Thu, 02 Jun 2022 15:18:30 GMT</pubDate><guid isPermaLink="false">b7bfd187-5b16-4031-9f59-8e393fc8656e</guid><dc:creator>Former Member</dc:creator><comments>https://community.telligent.com/community/12/w/api-documentation/71702/evolutionscrollable-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Former Member on 06/02/2022 15:18:30&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionScrollable" name="jQuery_fn_evolutionScrollable"&gt;&lt;/a&gt;jQuery.fn.evolutionScrollable&lt;/h3&gt;
&lt;p&gt;This plugin enhances an target to support endless scrolling through asynchronously-appended content. When the target&amp;#39;s nearest scrollable wrapper (either an overflowing target or the window) scrolls near its end, additional content is requested and rendered within the target. Additionally, the plugin supports pre-filling the target to fill its wrapper, batching scrolled pages to require explicit &amp;quot;view more&amp;quot; interaction to load further pages, indicating loading, including &amp;quot;return to top&amp;quot; links, and compensating for the dimensions of static content surrounding and offsetting scrollable content within its wrapper.&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;$(target).evolutionScrollable(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Where &lt;code&gt;target&lt;/code&gt; is the target that should be appended to.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Typical usage:&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(target).evolutionScrollable({
    load: function(pageIndex) {
        return $.telligent.evolution.get({
            url: callbackUrl
            data: {
                pageIndex: pageIndex
            }
        });
    }
});
&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;load&lt;/code&gt;: Function called when content is loaded. Passed a page index to load. Must return a promise that resolves with content (string, DOM, or jQuery selection) to append to the targeted target. If the promise fails or resolves with empty content, the scrollable prevents further loading. If the caller needs to perform its own, manual, appending of content instead of relying on &lt;code&gt;evolutionScrollable&lt;/code&gt; to append the result of the promise, it can perform its own appending within this callback and then resolve with a boolean value of &lt;code&gt;true&lt;/code&gt; to still allow the paging to continue.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;wrapper&lt;/code&gt;: Optional scrollable wrapper element in which to detect scroll progress. When not passed, nearest scrollable wrapper (including the target, an ancestor, or the window) is determined. It&amp;#39;s not usually necessary to pass this.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;target&lt;/code&gt;: Optional target element to append items too. Usually assumed to be the jQuery selection. &lt;em&gt;default:&lt;/em&gt; &lt;em&gt;jQuery selection&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;initialPageIndex&lt;/code&gt;: Initial page index. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prefill&lt;/code&gt;: Pages to attempt to load to pre-fill the target with content if it does not already fill its wrapper. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;10&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;batch&lt;/code&gt;: Number of pages to load before displaying a &lt;em&gt;view more&lt;/em&gt; indicator requring interaction to load another batch of pages. When &lt;code&gt;0&lt;/code&gt;, will never require interaction. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;10&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;animationDuration&lt;/code&gt;: Animation duration on scrolls and reveals of indicators and buttons. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;250&lt;/code&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="reset" name="reset"&gt;&lt;/a&gt;reset&lt;/h4&gt;
&lt;p&gt;Resets the scrollable, emptying its content, re-initing its page index and pre-filling its content.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(target).evolutionScrollable(&amp;#39;reset&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="loadMoreVisible" name="loadMoreVisible"&gt;&lt;/a&gt;loadMoreVisible&lt;/h4&gt;
&lt;p&gt;Expicitly set whether the &lt;em&gt;Load More&lt;/em&gt; action is displayed. Normally, this is automatically shown or hidden when a &lt;code&gt;batch&lt;/code&gt; of pages is used, but it can also be excplitily hidden when it&amp;#39;s known that no further pages would be available upon selection.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(target).evolutionScrollable(&amp;#39;loadMoreVisible&amp;#39;, bool);
&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><item><title>evolutionScrollable jQuery Plugin</title><link>https://community.telligent.com/community/12/w/api-documentation/71702/evolutionscrollable-jquery-plugin/revision/1</link><pubDate>Fri, 15 Jan 2021 21:46:07 GMT</pubDate><guid isPermaLink="false">b7bfd187-5b16-4031-9f59-8e393fc8656e</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/12/w/api-documentation/71702/evolutionscrollable-jquery-plugin#comments</comments><description>Revision 1 posted to API Documentation by Ben Tiedt on 01/15/2021 21:46:07&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;jQuery.fn.evolutionScrollable&lt;/h3&gt;
&lt;p&gt;This plugin enhances an target to support endless scrolling through asynchronously-appended content. When the target&amp;#39;s nearest scrollable wrapper (either an overflowing target or the window) scrolls near its end, additional content is requested and rendered within the target. Additionally, the plugin supports pre-filling the target to fill its wrapper, batching scrolled pages to require explicit &amp;quot;view more&amp;quot; interaction to load further pages, indicating loading, including &amp;quot;return to top&amp;quot; links, and compensating for the dimensions of static content surrounding and offsetting scrollable content within its wrapper.&lt;/p&gt;
&lt;h3&gt;Usage&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;$(target).evolutionScrollable(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Where &lt;code&gt;target&lt;/code&gt; is the target that should be appended to.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Typical usage:&lt;/em&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(target).evolutionScrollable({
    load: function(pageIndex) {
        return $.telligent.evolution.get({
            url: callbackUrl
            data: {
                pageIndex: pageIndex
            }
        });
    }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Options&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;load&lt;/code&gt;: Function called when content is loaded. Passed a page index to load. Must return a promise that resolves with content (string, DOM, or jQuery selection) to append to the targeted target. If the promise fails or resolves with empty content, the scrollable prevents further loading. If the caller needs to perform its own, manual, appending of content instead of relying on &lt;code&gt;evolutionScrollable&lt;/code&gt; to append the result of the promise, it can perform its own appending within this callback and then resolve with a boolean value of &lt;code&gt;true&lt;/code&gt; to still allow the paging to continue.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;wrapper&lt;/code&gt;: Optional scrollable wrapper element in which to detect scroll progress. When not passed, nearest scrollable wrapper (including the target, an ancestor, or the window) is determined. It&amp;#39;s not usually necessary to pass this.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;target&lt;/code&gt;: Optional target element to append items too. Usually assumed to be the jQuery selection. &lt;em&gt;default:&lt;/em&gt; &lt;em&gt;jQuery selection&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;initialPageIndex&lt;/code&gt;: Initial page index. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prefill&lt;/code&gt;: Pages to attempt to load to pre-fill the target with content if it does not already fill its wrapper. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;10&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;batch&lt;/code&gt;: Number of pages to load before displaying a &lt;em&gt;view more&lt;/em&gt; indicator requring interaction to load another batch of pages. When &lt;code&gt;0&lt;/code&gt;, will never require interaction. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;10&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;animationDuration&lt;/code&gt;: Animation duration on scrolls and reveals of indicators and buttons. &lt;em&gt;default:&lt;/em&gt; &lt;code&gt;250&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Methods&lt;/h3&gt;
&lt;h4&gt;reset&lt;/h4&gt;
&lt;p&gt;Resets the scrollable, emptying its content, re-initing its page index and pre-filling its content.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(target).evolutionScrollable(&amp;#39;reset&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;loadMoreVisible&lt;/h4&gt;
&lt;p&gt;Expicitly set whether the &lt;em&gt;Load More&lt;/em&gt; action is displayed. Normally, this is automatically shown or hidden when a &lt;code&gt;batch&lt;/code&gt; of pages is used, but it can also be excplitily hidden when it&amp;#39;s known that no further pages would be available upon selection.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(target).evolutionScrollable(&amp;#39;loadMoreVisible&amp;#39;, bool);
&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>