Home > Web Front-end > JS Tutorial > body text

jQuery EasyUI API Chinese Documentation - Pagination_jquery

WBOY
Release: 2016-05-16 18:01:27
Original
1658 people have browsed it

Overridden defaults with $.fn.pagination.defaults.
Dependency
linkbutton
Usage

Copy code The code is as follows:



Copy code The code is as follows:

$('#pp').pagination({
total:2000,
pageSize:10
});

特性

名称

类型

说明

默认值

total

number

记录总数,应该在创建pagination时设置。

1

pageSize

number

页面尺寸。(译者注:每页显示的最大记录数)

10

pageNumber

number

创建pagination时显示的页码。

1

pageList

array

用户能改变页面尺寸。pageList特性定义了能改成多大的尺寸。

[10,20,30,50]

loading

boolean

定义了是否数据正在加载。

false

buttons

array

定义了自定义按钮,每个按钮包含两个特性:
iconCls
CSS,它将显示一个背景图片
handler
:当按钮被点击时的处理函数。

null

showPageList

boolean

定义了是否显示页面列表。

true

showRefresh

boolean

定义了是否显示刷新按钮。

true

beforePageText

string

input组件之前显示label

Page

afterPageText

string

input组件之后显示label

of {pages}

displayMsg

string

显示页面信息。

Displaying {from} to {to} of {total} items

事件

名称

参数

说明

onSelectPage

pageNumber, pageSize

当用户选择新的页面时触发。回调函数包含两个参数:
pageNumber
:新的页码
pageSize
:新的页面尺寸

onBeforeRefresh

pageNumber, pageSize

刷新按钮点击之前触发,返回false就取消刷新动作。

onRefresh

pageNumber, pageSize

刷新之后触发。

onChangePageSize

pageSize

当用户改变页面尺寸时触发。

Methods

名称

参数

说明

options

none

返回options对象。

loading

none

pagination变成正在加载(loading)状态。

loaded

none

changes pagination to the loading completed (loaded) status.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!