AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.6.0 version of this document. Switch to the 8.4.0 version to see the up to date information.

class anychart.core.ui.Paginator Improve this Doc

Extends: anychart.core.Text

Paginator base class.

Methods Overview

Miscellaneous
background()Paginator background.
currentPage()Getter for active page.
layout()Getter for paginator layout.
margin()Paginator margin.
orientation()Orientation of the paginator.
padding()Paginator padding.

Methods Description

background

Paginator background.

Params:

NameTypeDescription
valuestring | Object | null | booleanValue to set.

currentPage

Getter for active page.

Returns:

number - Current page.
Setter for active page.

Params:

NameTypeDescription
valuenumber | stringValue to set.

Returns:

anychart.core.ui.Paginator - Self instance for method chaining.

layout

Getter for paginator layout.

Returns:

anychart.enums.Layout - Current layout or self for chaining.
Setter for paginator layout.

Params:

NameTypeDescription
valuestring | anychart.enums.LayoutValue to set.

Returns:

anychart.core.ui.Paginator - Self instance for method chaining.

margin

Paginator margin.

Params:

NameTypeDescription
spaceOrTopOrTopAndBottomstring | number | Array.<(number|string)> | ObjectSpace object or top or top and bottom space.
rightOrRightAndLeftstring | numberRight or right and left space.
bottomstring | numberBottom space.
leftstring | numberLeft space.

Returns:

anychart.core.ui.Paginator | anychart.core.utils.Margin - Padding or self for chaining.

orientation

Orientation of the paginator.

Params:

NameTypeDescription
valueanychart.enums.Orientation | stringValue to set.

padding

Paginator padding.

Params:

NameTypeDescription
spaceOrTopOrTopAndBottomstring | number | Array.<(number|string)> | ObjectSpace object or top or top and bottom space.
rightOrRightAndLeftstring | numberRight or right and left space.
bottomstring | numberBottom space.
leftstring | numberLeft space.

Returns:

anychart.core.ui.Paginator | anychart.core.utils.Padding - Padding or self for chaining.