Vincent Fournier 68e3f89633 Add single cell and modify config
Change-Id: I7c1349248dc64c73efe6b7aefb46e82d29a4cce7
2015-08-17 18:21:25 -04:00

23 lines
808 B
JavaScript

'use strict';
angular.module('bansho.actionbar', ['bansho.datasource', 'bansho.surveil', 'bansho.notifications'])
.directive('banshoActionbar', ['$compile', function ($compile) {
return {
restrict: 'E',
scope: {
options: '='
},
templateUrl: 'components/directive/actionbar/actionbar.html',
link: function (scope, element) {
scope.datasourceId = scope.options.attributes.datasourceId;
scope.components = scope.options.components;
angular.forEach(scope.components, function (component) {
component.attributes.datasourceId = scope.datasourceId;
});
$compile(element.contents())(scope);
}
};
}]);