The GEOSS Discovery And Access Broker APIs
Authors: Fabrizio Papeschi, Mattia Santoro, Stefano Nativi
API version: 1.4.3-beta

PaginatorWidget

Module: UI

A widget to control a Paginator object. The following CSS is required:

<!-- API CSS -->
<link rel="stylesheet" type="text/css" href="http://api.eurogeoss-broker.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]
)

Parameters:

  • id String

    id of an existent HTML container (typically <div> element) in which the widget is inserted

  • onResponse Function
  • [options] Object optional
    • [maxOffset] Integer optional
    • [offsetExceededMessage] String optional
    • [offsetExceededTitle] String optional

Item Index

Methods

Methods

update

(
  • resultSet
)

Updates the widget with the paginator of the current result set

Parameters: