[英]Paginate Iron-Ajax response
I would like to paginate the iron ajax response but I didn't succeed until now. 我想对铁ajax做出回应,但直到现在我都没有成功。 Any help 任何帮助
<template is="dom-bind">
<iron-ajax auto url="test2.json"
params = '{"A":"5", "B":"888"}'
handle-as="json" last-response="{{signups}}"></iron-ajax>
<vaadin-grid items="{{signups}}">
<table>
<colgroup>
<col name="A"/>
<col name="B"/>
</colgroup>
</table>
</vaadin-grid>
</template>
尝试使用params = "[[_getParams(A,B,page)]]"
,那么每次您分页++时,都会使用_getParams()的最新参数进行新的调用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.