Monster.Components.Datatable. Pagination

The Pagination component is used to show the current page and the total number of pages.

Dependencies: the system uses functions of the monsterjs library

You can create this control either by specifying the HTML tagdirectly in the HTML or using Javascript via thedocument.createElement('monster-pagination');` method.

<monster-pagination></monster-pagination>

Or you can create this CustomControl directly in Javascript:

import '@schukai/component-datatable/source/pagination.mjs';
document.createElement('monster-pagination');

Constructor

new Pagination()

A datatable

Members

defaults

To set the options via the html tag the attribute data-monster-options must be used.

To set the options via the html tag the attribute data-monster-options must be used.

Properties
NameTypeDescription
templatesObject

Template definitions

Properties
NameTypeDescription
mainstring

Main template

offsetint

Current offset

nextOffsetint

Next offset

prevOffsetint

Previous offset

objectsPerPageint

Number of objects per page

currentPageint

Current page

pagesint

Total number of pages

totalint

Total number of objects

See

(static) instanceSymbol

This method is called by the instanceof operator.

This method is called by the instanceof operator.

Methods

assembleMethodSymbol() → {Monster.Components.Form.Form}

(static) getCSSStyleSheet()

Returns:

[CSSStyleSheet]

(static) getTag() → {string}

Returns:
Type: 
string