API Docs for: 1.0.0
Show:

Paginator.ui.ItemRangeDropdown Class

ui Component to display a menu for selecting the range of items to display.

Constructor

Paginator.ui.ItemRangeDropdown

(
  • p
)

Parameters:

  • p Pagintor

    Paginator instance to attach to

Methods

destroy

() private

Removes the link/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

itemRangeDropdownClass

CSS class assigned to the span

Default: 'yui-paginator-ir-dropdown'

itemRangeDropdownTemplate

Used as innerHTML for the span.

Default: '{currentRange} of {totalItems}'