ionic App Development
-
vjmobby
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
9 years 2 weeks ago #4368
by vjmobby
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 2 weeks ago #4380
by admin
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