× Here you can get community support related to ReDJ.

ionic App Development

  • vjmobby
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 weeks ago #4368 by vjmobby
Replied by vjmobby on topic ionic App Development
Here is the pagination release code:-

release: function(pageNo, slideArray, currentNewsSize){
console.log("inside release");
console.log("pageNo "+pageNo);
console.log("slideArray.length "+slideArray.length);
console.log("currentNewsSize "+currentNewsSize);

this.trackDragCount = 0;
this.isScrollAtTop = false;
this.lastPositionWasAtTop = false;
delete this.verticle[pageNo];

var count = currentNewsSize*2 - 1;
var remarray = [];

if(this.horizontal) {
if(this.horizontalDirection=="prev") {
for(var i = count + slideArray.length; i > count ; i--) { //9
remarray = i;
}
} else if (this.horizontalDirection=="next") {
for(var i = 0 ; i < slideArray.length; i++) {
remarray = i;
}
}
// this.horizontal.removeSlide(slideArray);
this.horizontal.removeSlide(remarray);
}

this.horizontal.update(true);

for(var index = 0; index < slideArray.length; index++) {
this.compiledHtml[pageNo][index].remove();
}

delete this.compiledHtml[pageNo];

for(var index in this.lowerCompiledHtml[pageNo]) {
this.lowerCompiledHtml[pageNo][index].remove();
}

delete this.lowerCompiledHtml[pageNo];
}

Please Log in or Create an account to join the conversation.

More
9 years 2 weeks ago #4380 by admin
Replied by admin on topic ionic App Development
Sorry but I can't understand which could be the problem here.

Please Log in or Create an account to join the conversation.

Time to create page: 0.134 seconds