Top
You are looking at an outdated 7.3.0 version of this document. Switch to the 7.14.3 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:

Name Type Description
value string | Object | null | boolean .

currentPage

Getter for active page.

Returns:

number - Current page.
Setter for active page.

Params:

Name Type Description
value number | string Value to set.

Returns:

anychart.core.ui.Paginator - An instance of the anychart.core.ui.Paginator class for method chaining.

layout

Getter for paginator layout.

Returns:

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

Params:

Name Type Description
value string | anychart.enums.Layout Value to set.

Returns:

anychart.core.ui.Paginator - An instance of the anychart.core.ui.Paginator class for method chaining.

margin

Paginator margin.

Params:

Name Type Description
spaceOrTopOrTopAndBottom string | number | Array.<(number|string)> | Object Space object or top or top and bottom space.
rightOrRightAndLeft string | number Right or right and left space.
bottom string | number Bottom space.
left string | number Left space.

Returns:

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

orientation

Orientation of the paginator.

Params:

Name Type Description
value anychart.enums.Orientation | string .

padding

Paginator padding.

Params:

Name Type Description
spaceOrTopOrTopAndBottom string | number | Array.<(number|string)> | Object Space object or top or top and bottom space.
rightOrRightAndLeft string | number Right or right and left space.
bottom string | number Bottom space.
left string | number Left space.

Returns:

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