From 7121f009fccecb2b0e33bffbae3369a8e617db71 Mon Sep 17 00:00:00 2001 From: Icer2000 Date: Mon, 1 Feb 2016 15:07:09 +0100 Subject: [PATCH] added option to enable sliding of wizard Added the option "enableslide" so that one can choose to enable sliding of the wizard. Just add the attribute enableslide="true" to the ion-slide-box element. Not adding the attribute leads to the default behaviour. --- src/ion-wizard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ion-wizard.js b/src/ion-wizard.js index 6b41de4..1e13f43 100644 --- a/src/ion-wizard.js +++ b/src/ion-wizard.js @@ -31,8 +31,8 @@ angular.module('ionic.wizard', []) }], link: function (scope, element, attrs, controller) { var currentIndex = 0; - - $ionicSlideBoxDelegate.enableSlide(false); + var enableSlide = attrs.enableslide === "true" ? true : false; + $ionicSlideBoxDelegate.enableSlide(enableSlide); element.css('height', '100%');