API Docs for: 1.0.0
Show:

Paginator.ui.CurrentPageInput Class

Generates an input field for setting the current page.

Constructor

Paginator.ui.CurrentPageInput

(
  • p
)

Parameters:

  • p Pagintor

    Paginator instance to attach to

Item Index

Methods

destroy

() private

Removes the span node and clears event listeners.

render

(
  • id_base
)
HTMLElement

Generate the nodes and return the appropriate node given the current pagination state.

Parameters:

  • id_base String

    used to create unique ids for generated nodes

Returns:

HTMLElement:

update

(
  • e
)

Swap the link and span nodes if appropriate.

Parameters:

Attributes

pageInputClass

CSS class assigned to the span

Default: 'yui-paginator-page-input'

pageInputTemplate

Used as innerHTML for the span.

Default: '{currentPage} of {totalPages}'