summaryrefslogtreecommitdiff
path: root/www/lib/angular-wizard/src/step.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-21 12:49:18 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-21 12:49:18 -0400
commitb28028ac4082842143b0f528d6bc539da6ccb419 (patch)
tree1e26ea969a781ed8e323fca4e3c76345113fc694 /www/lib/angular-wizard/src/step.js
parent676270d21beed31d767a06c89522198c77d5d865 (diff)
mega changes, including updates and X
Diffstat (limited to 'www/lib/angular-wizard/src/step.js')
-rw-r--r--www/lib/angular-wizard/src/step.js23
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);
+ }
+ };
+});