The CSS class for the "active" page button.
Whether to render current page button as disabled.
The options for the disabled tag to be generated inside the disabled list element. In order to customize the html tag, please use the tag key.
let disabledListItemSubTagOptions = { tag: 'div', class: 'disabled-div' };
The CSS class for the "disabled" page buttons.
Whether to enable Pjax on this widget.
The CSS class for the "first" page button.
The label for the "first" page button. Note that this will NOT be HTML-encoded. If this property is false, the "first" page button will not be displayed.
Hide widget when only one page exist.
A Promise which resolves when this Component has been successfully initialized.
The CSS class for the "last" page button.
The label for the "last" page button. Note that this will NOT be HTML-encoded. If this property is false, the "last" page button will not be displayed.
HTML attributes which will be applied to all link containers
HTML attributes for the link in a pager container tag.
Maximum number of page buttons that can be displayed. Defaults to 10.
The CSS class for the "next" page button.
The label for the "next" page button. Note that this will NOT be HTML-encoded. If this property is false, the "next" page button will not be displayed.
HTML attributes for the pager container tag.
The CSS class for the each page button.
The pagination object that this pager is associated with. You must set this property in order to make LinkPager work.
The CSS class for the "previous" page button.
The label for the "previous" page button. Note that this will NOT be HTML-encoded. If this property is false, the "previous" page button will not be displayed.
The prefix to the automatically generated widget IDs.
A counter used to generate id for widgets.
Returns the ID of the widget.
ID of the widget.
the begin and end pages that need to be displayed.
Initializes the pager.
Renders a widget.
string the rendering result.
Renders a page button. You may override this method to customize the generation of page buttons.
the text label for the button
the page number
whether this page button is disabled
whether this page button is active
the rendering result
Renders the page buttons.
string the rendering result
Executes the widget. This overrides the parent implementation by displaying the generated page buttons.
Generated using TypeDoc
LinkPager displays a list of hyperlinks that lead to different pages of target.
LinkPager works with a Pagination object which specifies the total number of pages and the current page number.
Note that LinkPager only generates the necessary HTML markups. In order for it to look like a real pager, you should provide some CSS styles for it. With the default configuration, LinkPager should look good using Twitter Bootstrap CSS framework.
For more details and usage information on LinkPager, see the pagination section in this guide.
Mahesh S Warrier https://github.com/codespede