34 lines
640 B
JavaScript
34 lines
640 B
JavaScript
class MenuRow {
|
|
|
|
constructor() {
|
|
this.restrict = "E";
|
|
this.transclude = true;
|
|
this.templateUrl = "directives/menu-row.html";
|
|
this.scope = {
|
|
circle: "=",
|
|
label: "=",
|
|
subtite: "=",
|
|
hasButton: "=",
|
|
buttonText: "=",
|
|
buttonClass: "=",
|
|
buttonAction: "&",
|
|
spinnerClass: "=",
|
|
subRows: "=",
|
|
faded: "=",
|
|
desc: "="
|
|
};
|
|
}
|
|
|
|
controller($scope, componentManager) {
|
|
'ngInject';
|
|
|
|
$scope.clickButton = function($event) {
|
|
$event.stopPropagation();
|
|
$scope.buttonAction();
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
angular.module('app').directive('menuRow', () => new MenuRow);
|