Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 12.x
  • Verint Community
Verint Community 12.x
API Documentation evolutionScrollable jQuery Plugin
  • User Documentation
  • Ask the Community
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • API Documentation
  • +In-Process API Documentation
  • +Plugin API Documentation
  • +REST API Documentation
  • -Widget, Theme, and Automation APIs
    • +Automation Events
    • -Client-side APIs
      • +Client Messages
      • +Composer Plugins
      • +JavaScript API Modules
      • +jQuery Events
      • -jQuery Plugins
        • dynamicForm jQuery Plugin
        • evolutionBookmark jQuery Plugin
        • evolutionCodeEditor jQuery Plugin
        • evolutionComposer jQuery Plugin
        • evolutionFeature jQuery Plugin
        • evolutionHighlight jQuery Plugin
        • evolutionHtmlEditor jQuery Plugin
        • evolutionInlineTagEditor jQuery Plugin
        • evolutionLike jQuery Plugin
        • evolutionMasonry jQuery Plugin
        • evolutionModerate jQuery Plugin
        • evolutionPager jQuery Plugin
        • evolutionProgressIndicator jQuery Plugin
        • evolutionResize jQuery Plugin
        • evolutionScrollable jQuery Plugin
        • evolutionScrollSlider jQuery Plugin
        • evolutionSqueezeText jQuery Plugin
        • evolutionStarRating jQuery Plugin
        • evolutionTagTextBox jQuery Plugin
        • evolutionTextEditor jQuery Plugin
        • evolutionTheater jQuery Plugin
        • evolutionTip jQuery Plugin
        • evolutionToggleLink jQuery Plugin
        • evolutionTransform jQuery Plugin
        • evolutionUserFileTextBox jQuery Plugin
        • evolutionValidation jQuery Plugin
        • glowColorSelector jQuery Plugin
        • glowDateTimeSelector jQuery Plugin
        • glowDropDownList jQuery Plugin
        • glowLookUptextBox jQuery Plugin
        • glowModal jQuery Plugin
        • glowMultiUpload jQuery Plugin
        • glowOrderedList jQuery Plugin
        • glowPatternedTextBox jQuery Plugin
        • glowPopUpMenu jQuery Plugin
        • glowPopUpPanel jQuery Plugin
        • glowTabbedPanes jQuery Plugin
        • glowTabSet jQuery Plugin
        • glowTransition jQuery Plugin
        • glowTree jQuery Plugin
        • glowUpload jQuery Plugin
        • uilinks jQuery Plugin
      • +UI Components
    • +Dynamic Configuration
    • +LESS Functions
    • +Script API Types
    • +Script APIs

You are currently reviewing an older revision of this page.

  • History View current version

evolutionScrollable jQuery Plugin


jQuery.fn.evolutionScrollable

This plugin enhances an target to support endless scrolling through asynchronously-appended content. When the target'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 "view more" interaction to load further pages, indicating loading, including "return to top" links, and compensating for the dimensions of static content surrounding and offsetting scrollable content within its wrapper.

Usage

$(target).evolutionScrollable(options)

Where target is the target that should be appended to.

Typical usage:

$(target).evolutionScrollable({
    load: function(pageIndex) {
        return $.telligent.evolution.get({
            url: callbackUrl
            data: {
                pageIndex: pageIndex
            }
        });
    }
});

Options

  • load: 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 evolutionScrollable to append the result of the promise, it can perform its own appending within this callback and then resolve with a boolean value of true to still allow the paging to continue.
  • wrapper: 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's not usually necessary to pass this.
  • target: Optional target element to append items too. Usually assumed to be the jQuery selection. default: jQuery selection
  • initialPageIndex: Initial page index. default: 0
  • prefill: Pages to attempt to load to pre-fill the target with content if it does not already fill its wrapper. default: 10
  • batch: Number of pages to load before displaying a view more indicator requring interaction to load another batch of pages. When 0, will never require interaction. default: 10
  • animationDuration: Animation duration on scrolls and reveals of indicators and buttons. default: 250

Methods

reset

Resets the scrollable, emptying its content, re-initing its page index and pre-filling its content.

$(target).evolutionScrollable('reset');

loadMoreVisible

Expicitly set whether the Load More action is displayed. Normally, this is automatically shown or hidden when a batch of pages is used, but it can also be excplitily hidden when it's known that no further pages would be available upon selection.

$(target).evolutionScrollable('loadMoreVisible', bool);

  • Telligent
  • Professional Services
  • Submit a Support Ticket
  • Become a Partner
  • Request a Demo
  • Contact Us

About
Privacy Policy
Terms of use
Copyright 2024 Verint, Inc.
Powered by Verint Community