Class sap.ui.commons.PaginatorModule: sap/ui/commons/Paginator
Provides navigation between pages within a list of numbered pages.
Deprecated API:Since version 1.38.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the page
event of this sap.ui.commons.Paginator
.fnFunction
from the page
event of this sap.ui.commons.Paginator
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- currentPage : int (default: 1)
- numberOfPages : int
- Events
- page : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
{string} | sId? | ID for the new control, generated automatically if no ID is given |
{object} | mSettings? | Initial settings for the new control |
- Deprecated:
- Since version 1.38.
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{int} | oControlEvent.getParameters.srcPage | The page which is the current one before the page event is fired (and another page is displayed) |
{int} | oControlEvent.getParameters.targetPage | The page that shall be displayed next after the page event is fired. The page number is 1-based: the first page has index 1, not 0, to match the number visible in the UI. |
{sap.ui.commons.PaginatorEvent} | oControlEvent.getParameters.type | Provides the values 'First', 'Last', 'Next', 'Previous', 'Goto'. The event parameter informs the application how the user navigated to the new page: Whether the 'Next' button was used, or another button, or whether the page was directly selected |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the page
event of this sap.ui.commons.Paginator
. When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.commons.Paginator
itself.
Event is fired when the user navigates to another page by selecting it directly, or by jumping forward/backward.
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.commons.Paginator itself |
{sap.ui.commons.Paginator} | Reference to this in order to allow method chaining |
fnFunction
from the page
event of this sap.ui.commons.Paginator
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.commons.Paginator} | Reference to this in order to allow method chaining |
page
to attached listeners. Expects the following event parameters:
srcPage
of typeint
The page which is the current one before the page event is fired (and another page is displayed)targetPage
of typeint
The page that shall be displayed next after the page event is fired.The page number is 1-based: the first page has index 1, not 0, to match the number visible in the UI.
type
of typesap.ui.commons.PaginatorEvent
Provides the values 'First', 'Last', 'Next', 'Previous', 'Goto'. The event parameter informs the application how the user navigated to the new page: Whether the 'Next' button was used, or another button, or whether the page was directly selected
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.commons.Paginator} | Reference to this in order to allow method chaining |
currentPage
. Represents the current page (first page has index 1, not 0, to match the visual number)
Default value is 1
.
{int} | Value of property currentPage |
numberOfPages
. Represents the overall number of pages that are embedded into the parent control
{int} | Value of property numberOfPages |
currentPage
. Represents the current page (first page has index 1, not 0, to match the visual number)
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{int} | iCurrentPage | New value for property currentPage |
{sap.ui.commons.Paginator} | Reference to this in order to allow method chaining |
numberOfPages
. Represents the overall number of pages that are embedded into the parent control
When called with a value of null
or undefined
, the default value of the property will be restored.
{int} | iNumberOfPages | New value for property numberOfPages |
{sap.ui.commons.Paginator} | Reference to this in order to allow method chaining |