@djs-button-pages/presets
Version:
A set of presets that are used for faster development.
24 lines (23 loc) • 772 B
TypeScript
import { ButtonData, ButtonWrapper } from "djs-button-pages";
/**
* Bind for button that switches pagination to the previous page.
*/
export default class PreviousPageButton extends ButtonWrapper {
/**
* Bind for button that switches pagination to the previous page.
* @param {ButtonData} style Styling for button.
*/
constructor(style?: ButtonData);
/**
* Action that switches pagination to the previous 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}
*/
private static _switch;
}