summaryrefslogtreecommitdiff
path: root/www/lib/angular-wizard/src/step.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-04-30 14:44:13 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-04-30 14:44:13 -0400
commitc59f45bf14e7915feca4e0303e204e33ef83998e (patch)
tree584774329ea9b7f5480ffb0b37ef24bd3a42614b /www/lib/angular-wizard/src/step.js
parent64efb670cd148b017c863da0880bd624c29ccef5 (diff)
#234 - initial code - template
Former-commit-id: 57b199dac407d8a19ca13df5f54ca829d40bb7e6
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);
+ }
+ };
+});