i've a triger named LoadMore
"loadmore":{
"type": "$set",
"options": {
"news_all": "{{$cache.news}}"
},
"success":{
"type": "$set",
"options": {
"index": "{{(parseInt($get.index)+1).toString()}}"
},
"success":{
"type": "$network.request",
"options": {
"url": "https://example.com/api/?p={{$get.index}}"
},
"success": {
"type": "$cache.set",
"options": {
"news": "{{ var a = $get.news_all; var b = a.concat($jason); return b; }}"
},
"success":{
"type": "$render"
}
}
}
}
}
and at the buttom of view i put button that calls this function
{
"type": "horizontal",
"items": [{
"type": "button",
"text": "load more",
"style":{
"width": "100%",
"padding": "5",
"size": "16",
"align": "center",
"height": "50"
},
"action": {
"trigger": "loadmore"
}
}]
}
i think it will be helpful 