Version 1
Common Interface IPageController GrapeCity DataViewsJS Interface

IPageController Interface

Defines interface of page navigation controller.

Heirarchy

  • IPageController

Methods

first

  • first(cb: ActionOne): void
  • Go to the first page

    Parameters

    • cb: ActionOne

      completion callback

    Returns void

getStatus

  • Returns the current page status which contains pageIndex, pageSize, maxPages and maxItems.

    Returns IPageControllerStatus

goToPage

  • goToPage(pageIndex: number, cb: ActionOne): void
  • Go to the specific page. the only parameter it expected is the page index.

    Parameters

    • pageIndex: number

      page index

    • cb: ActionOne

      completion callback

    Returns void

last

  • last(cb: ActionOne): void
  • Go to the last page.

    Parameters

    • cb: ActionOne

      completion callback

    Returns void

next

  • next(cb: ActionOne): void
  • Go to the next page.

    Parameters

    • cb: ActionOne

      completion callback

    Returns void

previous

  • previous(cb: ActionOne): void
  • Go to the previous page.

    Parameters

    • cb: ActionOne

      completion callback

    Returns void