History Extension

The History extension adds history support.

This extension requires the Paging extension and the Trigger extension.

This extension is bundled with IAS as a core extension.

Usage

After you initialized IAS you can register the extension:

// needed by the history extension
ias.extension(new IASTriggerExtension());
ias.extension(new IASPagingExtension());

ias.extension(new IASHistoryExtension({
    prev: '.previous',
}));

You can optionally set options for this extension. See below.

Options

prev

Type
string
Default
".prev"

Enter the selector of the link element that links to the previous page. The href attribute of this element will be used to get the items from the previous page. Make sure there is only one(1) element that matches the selector.

Methods

prev

Loads the previous page.

jQuery.ias().prev();

Remarks

When using the history extension it is not possible to use IAS in a overflow div.

Something is missing or incorrect in this documentation? Just fork and edit it!