API Docs for: 1.0.0
Show:

Paginator.ui.LastPageLink Class

ui Component to generate the link to jump to the last 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

rebuild

(
  • e
)

Rebuild the markup.

Parameters:

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, span, and na nodes if appropriate.

Parameters:

Properties

current

HTMLElement private

Currently placed HTMLElement node

na

HTMLElement private

Empty place holder node for when the last page link is inappropriate to display in any form (unlimited paging).

span

HTMLElement private

Span node (inactive link)

Attributes

lastPageLinkClass

CSS class assigned to the link/span

Default: 'yui-paginator-last'

lastPageLinkLabel

Used as innerHTML for the last page link/span.

Default: 'last >>'