You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use jPages on a page with standard bootstrap tabs. The pagination doesn't seem to work if it is located in one of the hidden tabs but does work if it's in the active tab.
Any reason this would be or fixes for it?
The text was updated successfully, but these errors were encountered:
This solution doesn't involve altering the jPages plugin code. You can use the Bootstrap Events to trigger the pagination creation when the tab is shown.
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var pagerExist = $(" div.holder a").length
if (pagerExist == 0 ) {
$("div.pagination").jPages({
containerID: "itemContainer"
});
}
});
Trying to use jPages on a page with standard bootstrap tabs. The pagination doesn't seem to work if it is located in one of the hidden tabs but does work if it's in the active tab.
Any reason this would be or fixes for it?
The text was updated successfully, but these errors were encountered: