Home Reference Source
import {TfPagerElement} from 'tablefilter/src/components/tf-pager.js'
public class | source

TfPagerElement

Extends:

HTMLElement → TfPagerElement

Static Member Summary

Static Public Members
public static get

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public
public
public

setLabel(label: *)

Set the landmark's accessible name, rendered as aria-label on the nav part.

public

setPage(page: *)

Set the current page number.

public

setPages(pages: Array<Object>)

Supply the page list rendered into the select.

public

setTotalPages(totalPages: *)

Set the page count, resolved by the host from the legacy Paging feature.

Static Public Members

public static get observedAttributes: * source

Public Constructors

public constructor() source

Public Methods

public attributeChangedCallback() source

public connectedCallback() source

public setLabel(label: *) source

Set the landmark's accessible name, rendered as aria-label on the nav part.

Params:

NameTypeAttributeDescription
label *

Accessible name

public setPage(page: *) source

Set the current page number.

Params:

NameTypeAttributeDescription
page *

Page number, 1-based

public setPages(pages: Array<Object>) source

Supply the page list rendered into the select. Each entry is {text, value} — the legacy option model, page number as visible text and start row as value (paging.js:546).

Params:

NameTypeAttributeDescription
pages Array<Object>

Page entries

public setTotalPages(totalPages: *) source

Set the page count, resolved by the host from the legacy Paging feature.

Params:

NameTypeAttributeDescription
totalPages *

Page count