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

Specific settings
background()Paginator background.
currentPage()Active page.
Size and Position
layout()Layout settings.
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 Value to set.

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 - 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:

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

Returns:

anychart.core.ui.Paginator - Self instance 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 Value to set.

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.