UNPKG

@djs-button-pages/presets

Version:

A set of presets that are used for faster development.

24 lines (23 loc) 776 B
import { ButtonData, ButtonWrapper } from "djs-button-pages"; /** * Bind for button that switches pagination to the first page. */ export default class FirstPageButton extends ButtonWrapper { /** * Bind for button that switches pagination to the first page. * @param {ButtonData} style Styling for button. */ constructor(style?: ButtonData); /** * Action that switches pagination to the first page. * @param {PaginationSent} pagination Pagination. * @returns {Promise<void>} */ private static _doAction; /** * Switch that disables button on the first page. * @param {PaginationSent} pagination Pagination. * @returns {boolean} Button's state. */ private static _switch; }