<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>evolutionPager jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67148/evolutionpager-jquery-plugin</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>evolutionPager jQuery Plugin</title><link>https://community.telligent.com/community/11/w/api-documentation/67148/evolutionpager-jquery-plugin</link><pubDate>Tue, 19 Nov 2019 20:29:14 GMT</pubDate><guid isPermaLink="false">11d41445-c094-4d50-9b06-e8a0c136edc6</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/67148/evolutionpager-jquery-plugin#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:29:14&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_fn_evolutionPager" name="jQuery_fn_evolutionPager"&gt;&lt;/a&gt;jQuery.fn.evolutionPager&lt;/h3&gt;
&lt;p&gt;This plugin renders a paging UI, supporting both ajax and non-ajax based paging. It is typically not called directly, but rather by the [[page UI Component|page UI component]], which is also not typically used directly, but rather by calls to the &lt;code&gt;$core_v2_ui.Pager()&lt;/code&gt; Widget API method.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Usage" name="Usage"&gt;&lt;/a&gt;Usage&lt;/h3&gt;
&lt;p&gt;Initializes a pager where &lt;code&gt;SELECTOR&lt;/code&gt; is a &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$(&amp;#39;SELECTOR&amp;#39;).evolutionPager(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;By default, this will render a set of paging links which navigate the browser.&lt;/p&gt;
&lt;p&gt;If &lt;code&gt;onPage&lt;/code&gt; and the other ajax-related options are provided, links will not navigate the browser, but publish paging event messages. The plugin will also subscribe to these same messages and use the supplied &lt;code&gt;onPage&lt;/code&gt; function to request a new page of content to replace within the &lt;code&gt;pagedContentContainer&lt;/code&gt;.&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;currentPage&lt;/code&gt;: Current page index
&lt;ul&gt;
&lt;li&gt;default: 0&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pageSize&lt;/code&gt;: Items per page
&lt;ul&gt;
&lt;li&gt;default: 10&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;totalItems&lt;/code&gt;: Total items
&lt;ul&gt;
&lt;li&gt;default: 0&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;showPrevious&lt;/code&gt;: (boolean) Whether &amp;#39;previous&amp;#39; links should be shown
&lt;ul&gt;
&lt;li&gt;default: false&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;showNext&lt;/code&gt;: (boolean) Whether &amp;#39;next&amp;#39; links should be shown
&lt;ul&gt;
&lt;li&gt;default: false&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;showFirst&lt;/code&gt;: (boolean) Whether &amp;#39;first&amp;#39; links should be shown
&lt;ul&gt;
&lt;li&gt;default: true&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;showLast&lt;/code&gt;: (boolean) Whether &amp;#39;last&amp;#39; links should be shown
&lt;ul&gt;
&lt;li&gt;default: true&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;showIndividualPages&lt;/code&gt;: Whether individual pages should be shown
&lt;ul&gt;
&lt;li&gt;default: true&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;numberOfPagesToDisplay&lt;/code&gt;: Number of individual pages to show
&lt;ul&gt;
&lt;li&gt;default: 5&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pageKey&lt;/code&gt;: Name of the query string key to use to hold page index
&lt;ul&gt;
&lt;li&gt;default: &amp;#39;pi&amp;#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;hash&lt;/code&gt;: Explicit hash target for links
&lt;ul&gt;
&lt;li&gt;default: &amp;#39;&amp;#39;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;baseUrl&lt;/code&gt;: Base URL
&lt;ul&gt;
&lt;li&gt;default: current URL (window.location.href)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;template&lt;/code&gt;: [[template JavaScript API Module|template]] for rendering links&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;a id="Ajax-Related_Options" name="Ajax-Related_Options"&gt;&lt;/a&gt;Ajax-Related Options&lt;/h3&gt;
&lt;p&gt;When provided, performs paging via usage of &lt;code&gt;onPage&lt;/code&gt; (which will typically be defined to perform an ajax request) instead of navigation. Most of these are usually not necessary to define specifically, but are defined by usage of &lt;code&gt;$core_v2_ui.Pager()&lt;/code&gt; where &lt;code&gt;PagedContentFile&lt;/code&gt; or &lt;code&gt;PagedContentUrl&lt;/code&gt; are passed.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;onPage&lt;/code&gt;: function callback which is invoked to load a new page of content asynchronously. Passed parameters:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;pageIndex&lt;/code&gt;: page index of content to load&lt;/li&gt;
&lt;li&gt;&lt;code&gt;complete&lt;/code&gt;: callback function to invoke when content is ready to be passed back to the plugin. Must be passed the content.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;hash&lt;/code&gt;: object of other key/value pairs serialized in the current url&amp;#39;s hash&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pagedContentContainer&lt;/code&gt;: selector of element to update with newly received content&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pagedContentPagingEvent&lt;/code&gt;: message to publish and subscribe to about a requested page change. Typically unique per widget and defined by &lt;code&gt;$core_v2_ui.Pager()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pagedContentPagedEvent&lt;/code&gt;: message to publish and subscribe to about a requested page change. Typically unique per widget and defined by &lt;code&gt;$core_v2_ui.Pager()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;refreshOnAnyHashChange&lt;/code&gt;: when true, triggers an onPage for any change of the hash, not just the page key
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;false&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;transition&lt;/code&gt;: &amp;#39;slide&amp;#39;, &amp;#39;fade&amp;#39;, or &amp;#39;null
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;null&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;transitionDuration&lt;/code&gt;: transition duration
&lt;ul&gt;
&lt;li&gt;default: &lt;code&gt;250&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;&lt;a id="Default_Template" name="Default_Template"&gt;&lt;/a&gt;Default Template&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;% foreach(links, function(link, i) { %&amp;gt;
    &amp;lt;% if(link.type === &amp;quot;first&amp;quot;) { %&amp;gt;
        &amp;lt;a href=&amp;quot;&amp;lt;%: link.url %&amp;gt;&amp;quot; class=&amp;quot;first&amp;quot; data-type=&amp;quot;first&amp;quot; data-page=&amp;quot;&amp;lt;%= link.page %&amp;gt;&amp;quot; data-selected=&amp;quot;false&amp;quot;&amp;gt;
            &amp;lt;span&amp;gt;&amp;amp;#171;&amp;lt;/span&amp;gt;
        &amp;lt;/a&amp;gt;
    &amp;lt;% } else if(link.type === &amp;quot;previous&amp;quot;) { %&amp;gt;
        &amp;lt;a href=&amp;quot;&amp;lt;%: link.url %&amp;gt;&amp;quot; class=&amp;quot;previous&amp;quot; data-type=&amp;quot;previous&amp;quot; data-page=&amp;quot;&amp;lt;%= link.page %&amp;gt;&amp;quot; data-selected=&amp;quot;false&amp;quot;&amp;gt;
            &amp;lt;span&amp;gt;&amp;amp;#60;&amp;lt;/span&amp;gt;
        &amp;lt;/a&amp;gt;
    &amp;lt;% } else if(link.type === &amp;quot;page&amp;quot;) { %&amp;gt;
        &amp;lt;a href=&amp;quot;&amp;lt;%: link.url %&amp;gt;&amp;quot; class=&amp;quot;page&amp;lt;%= link.selected ? &amp;quot; selected&amp;quot; : &amp;quot;&amp;quot; %&amp;gt;&amp;quot; data-type=&amp;quot;page&amp;quot; data-page=&amp;quot;&amp;lt;%= link.page %&amp;gt;&amp;quot; data-selected=&amp;quot;&amp;lt;%= link.selected ? &amp;quot;true&amp;quot; : &amp;quot;false&amp;quot; %&amp;gt;&amp;quot;&amp;gt;
            &amp;lt;span&amp;gt;&amp;lt;%= link.page %&amp;gt;&amp;lt;/span&amp;gt;
        &amp;lt;/a&amp;gt;
    &amp;lt;% } else if(link.type === &amp;quot;next&amp;quot;) { %&amp;gt;
        &amp;lt;a href=&amp;quot;&amp;lt;%: link.url %&amp;gt;&amp;quot; class=&amp;quot;next&amp;quot; data-type=&amp;quot;next&amp;quot; data-page=&amp;quot;&amp;lt;%= link.page %&amp;gt;&amp;quot; data-selected=&amp;quot;false&amp;quot;&amp;gt;
            &amp;lt;span&amp;gt;&amp;amp;#62;&amp;lt;/span&amp;gt;
        &amp;lt;/a&amp;gt;
    &amp;lt;% } else if(link.type === &amp;quot;last&amp;quot;) { %&amp;gt;
        &amp;lt;a href=&amp;quot;&amp;lt;%: link.url %&amp;gt;&amp;quot; class=&amp;quot;last&amp;quot; data-type=&amp;quot;last&amp;quot; data-page=&amp;quot;&amp;lt;%= link.page %&amp;gt;&amp;quot; data-selected=&amp;quot;false&amp;quot;&amp;gt;
            &amp;lt;span&amp;gt;&amp;amp;#187;&amp;lt;/span&amp;gt;
        &amp;lt;/a&amp;gt;
    &amp;lt;% } %&amp;gt;
    &amp;lt;% if(i &amp;lt; (links.length - 1)) { %&amp;gt;
        &amp;lt;span class=&amp;quot;separator&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;
    &amp;lt;% } %&amp;gt;
&amp;lt;% }); %&amp;gt;
&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>