Skip to content

Commit 4d0d050

Browse files
committed
add initial slides
1 parent d527dec commit 4d0d050

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/ionSlideBox/ionSlideBox.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Template.ionSlideBox.created = function () {
44
this.autoPlay = this.data.autoPlay || false;
55
this.slideInterval = this.data.slideInterval || 4000;
66
this.showPager = typeof this.data.showPager != 'undefined' ? this.data.showPager : true;
7+
this.initialSlide = this.data.initialSlide || Session.get('ion-slide-initial-slide') || 0;
78
};
89

910
Template.ionSlideBox.rendered = function () {
@@ -14,6 +15,7 @@ Template.ionSlideBox.rendered = function () {
1415
arrows: false,
1516
dots: this.showPager,
1617
dotsClass: 'slider-pager',
18+
initialSlide: this.initialSlide,
1719
customPaging: function(slider, i) {
1820
return '<span class="slider-pager-page icon ion-record"></span>';
1921
}

0 commit comments

Comments
 (0)