We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d527dec commit 4d0d050Copy full SHA for 4d0d050
components/ionSlideBox/ionSlideBox.js
@@ -4,6 +4,7 @@ Template.ionSlideBox.created = function () {
4
this.autoPlay = this.data.autoPlay || false;
5
this.slideInterval = this.data.slideInterval || 4000;
6
this.showPager = typeof this.data.showPager != 'undefined' ? this.data.showPager : true;
7
+ this.initialSlide = this.data.initialSlide || Session.get('ion-slide-initial-slide') || 0;
8
};
9
10
Template.ionSlideBox.rendered = function () {
@@ -14,6 +15,7 @@ Template.ionSlideBox.rendered = function () {
14
15
arrows: false,
16
dots: this.showPager,
17
dotsClass: 'slider-pager',
18
+ initialSlide: this.initialSlide,
19
customPaging: function(slider, i) {
20
return '<span class="slider-pager-page icon ion-record"></span>';
21
}
0 commit comments