Skip to content

Commit 83dba7c

Browse files
committed
Add functions to manipulate hideIndicators setting
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
1 parent 9823e1f commit 83dba7c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ The functions available in the `wizard()` are:
221221
* **currentStep()**: This returns an Object which is the current step you are on.
222222
* **totalStepCount()**: This returns an Number which is the total number of **enabled** steps.
223223
* **getEnabledSteps()**: This returns an Array which is the **enabled** steps.
224+
* **setHideIndicators()**: This sets if the indicators should be hidden.
225+
* **getHideIndicators()**: This returns whether the indicators are hidden or not.
224226
* **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.
225227

226228
## Events

dist/angular-wizard.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,14 @@ angular.module('mgo-angular-wizard').directive('wizard', function() {
343343
return $scope.getEnabledSteps();
344344
};
345345

346+
this.setHideIndicators = function(hide) {
347+
$scope.hideIndicators = hide;
348+
}
349+
350+
this.getIndicatorsHidden = function() {
351+
return $scope.hideIndicators;
352+
}
353+
346354
//Access to current step number from outside
347355
this.currentStepNumber = function(){
348356
return $scope.currentStepNumber();

0 commit comments

Comments
 (0)