API Docs for: 1.0.0
Show:

Paginator.ui.FirstPageLink Class

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

Constructor

Methods

destroy

() private

Removes the link/span node and clears event listeners.

onClick

(
  • e
)

Listener for the link's onclick event. Pass new value 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 and span nodes if appropriate.

Parameters:

Properties

current

HTMLElement private

The currently placed HTMLElement node

span

HTMLElement private

Span node (inactive link)

Attributes

firstPageLinkClass

CSS class assigned to the link/span

Default: 'yui-paginator-first'

firstPageLinkLabel

Used as innerHTML for the first page link/span.

Default: '<< first'