salix/front/core/components/card/card.js

18 lines
465 B
JavaScript
Raw Normal View History

2018-02-10 15:18:01 +00:00
import ngModule from '../../module';
2018-03-01 22:38:14 +00:00
require('./style.scss');
2018-02-10 15:18:01 +00:00
2019-09-30 09:30:54 +00:00
export default function directive() {
2018-02-10 15:18:01 +00:00
return {
restrict: 'E',
transclude: true,
link: function($scope, $element, $attrs, $ctrl, $transclude) {
2019-10-23 15:38:35 +00:00
$element[0].classList.add('vn-shadow', 'bg-panel');
$transclude($scope, function(clone) {
2019-10-23 15:38:35 +00:00
$element.append(clone);
});
2018-03-01 22:38:14 +00:00
}
2018-02-10 15:18:01 +00:00
};
}
ngModule.directive('vnCard', directive);