diff --git a/README.md b/README.md index e932f42..baa25d9 100644 --- a/README.md +++ b/README.md @@ -221,6 +221,8 @@ The functions available in the `wizard()` are: * **currentStep()**: This returns an Object which is the current step you are on. * **totalStepCount()**: This returns an Number which is the total number of **enabled** steps. * **getEnabledSteps()**: This returns an Array which is the **enabled** steps. +* **setHideIndicators()**: This sets if the indicators should be hidden. +* **getHideIndicators()**: This returns whether the indicators are hidden or not. * **setEditMode(boolean)**: Set the edit mode of the wizard. Setting editMode to `true` will make ALL steps accessible, setting edit mode to `false` will make all steps with an index lower than the latest "completed" step accessible. ## Events diff --git a/dist/angular-wizard.js b/dist/angular-wizard.js index 6380ed4..5173279 100644 --- a/dist/angular-wizard.js +++ b/dist/angular-wizard.js @@ -343,6 +343,14 @@ angular.module('mgo-angular-wizard').directive('wizard', function() { return $scope.getEnabledSteps(); }; + this.setHideIndicators = function(hide) { + $scope.hideIndicators = hide; + } + + this.getIndicatorsHidden = function() { + return $scope.hideIndicators; + } + //Access to current step number from outside this.currentStepNumber = function(){ return $scope.currentStepNumber();