JQuery Easyui API Chinese document-pagination paging _jquery

Source: Internet
Author: User

Rewrite the defaults with $.fn.pagination.defaults.
Depend on
LinkButton
Usage

Copy Code code as follows:

<div id= "pp" style= "background: #efefef; border:1px solid #ccc;" ></div>

Copy Code code as follows:

$ (' #pp '). Pagination ({
total:2000,
Pagesize:10
});

Characteristics

Name

Type

Description

Default value

Total

Number

The total number of records should be set when pagination is created.

1

PageSize

Number

The page size. (Translator Note: The maximum number of records displayed per page)

10

PageNumber

Number

the page number to display when the pagination is created.

1

PageList

Array

The user can change the page size. The pagelist feature defines how large a size can be changed.

[10,20,30,50]

Loading

Boolean

Defines whether the data is being loaded.

False

Buttons

Array

Custom buttons are defined with two attributes per button:
Iconcls:CSS class , which will display a background picture
Handler: The processing function when the button is clicked.

Null

Showpagelist

Boolean

Defines whether to display a list of pages.

True

Showrefresh

Boolean

Defines whether the Refresh button is displayed.

True

Beforepagetext

String

displays a label before the input component .

Page

Afterpagetext

String

displays a label after the input component .

of {pages}

Displaymsg

String

Displays page information.

displaying {from} to {to} of the {total} items

Event

Name

Parameters

Description

Onselectpage

PageNumber, PageSize

Triggered when the user selects a new page. The callback function contains two parameters:
PageNumber: New page number
PageSize: New Page size

Onbeforerefresh

PageNumber, PageSize

Refresh the button before clicking the trigger, return false to cancel the refresh action.

Onrefresh

PageNumber, PageSize

triggered after refreshing.

Onchangepagesize

PageSize

Triggered when the user changes the page size.

Methods

Name

Parameters

Description

Options

None

Returns an options object.

Loading

None

Turn the pagination into a loading (loading) state.

Loaded

None

Turn the pagination into a load complete (loaded) state.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.