Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Update to new pagination API #40

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

jccr
Copy link
Contributor

@jccr jccr commented Dec 1, 2014

Fixes #36.

  • Updated PaginationInfo JS -> Java
  • Updated page indicator to include a range of pages when in multi-column
  • Left/Right page buttons now enable/disable depending on canGoLeft/Right


if (window.LauncherUI) {
window.LauncherUI.onPaginationChanged(JSON.stringify(paginationInfo.paginationInfo));
var staticPaginationInfo = pageChangeData.paginationInfo;
staticPaginationInfo.canGoLeft = staticPaginationInfo.canGoLeft();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename the canGoXX field names, so that they do not overwrite the canGoXX() method names in the PaginationInfo object?
In iOS launcher we append '_':
https://github.com/readium/SDKLauncher-iOS/blob/develop/Resources/host_app_feedback.js#L94

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants