Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Add items in the page > first page, the state shows wrong totalPages #342

Open
nttdocomo opened this issue Aug 2, 2016 · 0 comments
Open

Comments

@nttdocomo
Copy link

var pageCol = new PageableCollection([],{
        mode:'client',
        state: {
            pageSize:5
        }
    }),
    array = []
    for (var i = 7 - 1; i >= 0; i--) {
        array.push({
            'name':i,
            'phone':'15210492508',
            'amount':i,
            'comment':'cccccccccccccc'
        })
    }
    pageCol.add(array)
    pageCol.getNextPage()
    pageCol.add(array)
    console.log(pageCol.state)

At last, the log will show the state's totalPages is 3, but expect is 2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant