PaginatorWidget
A widget to control a Paginator object. The following CSS is required:
<!-- API CSS -->
<link rel="stylesheet" type="text/css" href="https://api.geodab.eu/docs/assets/css/giapi.css" />
<!-- Font Awesome CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" />
The control buttons are created using rounded corner buttons.
// creates the widget with the default options
var pagWidget = GIAPI.PaginatorWidget(id, onDiscoverResponse, onPagination);
// ...
var onDiscoverResponse = function(response) {
var resultSet = response[0];
...
// updates the widget with the current result set
pagWidget.update(resultSet);
...
}
For CSS personalization, see the paginator-widget
class of the API CSS file
Constructor
PaginatorWidget
(
-
id
-
onResponse
-
[options]