diff options
Diffstat (limited to 'www/lib/angular-wizard/src/step.js')
| -rw-r--r-- | www/lib/angular-wizard/src/step.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/www/lib/angular-wizard/src/step.js b/www/lib/angular-wizard/src/step.js new file mode 100644 index 00000000..2a266255 --- /dev/null +++ b/www/lib/angular-wizard/src/step.js @@ -0,0 +1,23 @@ +angular.module('mgo-angular-wizard').directive('wzStep', function() { + return { + restrict: 'EA', + replace: true, + transclude: true, + scope: { + wzTitle: '@', + canenter : '=', + canexit : '=', + disabled: '@?wzDisabled', + description: '@', + wzData: '=' + }, + require: '^wizard', + templateUrl: function(element, attributes) { + return attributes.template || "step.html"; + }, + link: function($scope, $element, $attrs, wizard) { + $scope.title = $scope.wzTitle; + wizard.addStep($scope); + } + }; +}); |
