Closed zlongxiang closed 5 years ago
you may use jquery ajax if it helps you
paginator = () => $('#abc').pagination({
showGoInput: true,
showGoButton: true,
dataSource: (done) => $.ajax({
url: '/admin/api/modelType/page?pageNumber=2&pageSize=2',
success: (data) => {
this.setState({data});
done(data.content.map((e,i) => i))
}
}),
}
I has seem http://pagination.js.org/, but I don't find some using ajax demo. Could you add some? Thank you !