import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; import { COMMON_STYLES } from "../../common/styles"; import { PBPagination } from "../../api/Client"; @customElement("ak-table-pagination") export class TablePagination extends LitElement { @property({attribute: false}) pages?: PBPagination; @property({attribute: false}) // eslint-disable-next-line pageChangeHandler: (page: number) => void = (page: number) => {} static get styles(): CSSResult[] { return COMMON_STYLES; } render(): TemplateResult { return html`
${this.pages?.start_index} - ${this.pages?.end_index} of ${this.pages?.count}
`; } }