API Docs for: 1.0.0
Show:

Paginator.ui.PreviousPageLink Class

ui Component to generate the link to jump to the previous page.

Constructor

Methods

destroy

() private

Removes the link/span node and clears event listeners

onClick

(
  • e
)

Listener for the link's onclick event. Passes to setPage method.

Parameters:

  • e DOMEvent

    The click event

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:

Properties

current

HTMLElement private

Currently placed HTMLElement node

span

HTMLElement private

Span node (inactive link)

Attributes

previousPageLinkClass

CSS class assigned to the link/span

Default: 'yui-paginator-previous'

previousPageLinkLabel

Used as innerHTML for the previous page link/span.

Default: '< prev'