blob: 0f03ecb88934d79e7195702a401e0d6097abc278 [file] [log] [blame]
Matteo Scandoloee655a12016-12-19 15:38:43 -08001import IDirective = angular.IDirective;
2export function xosLinkWrapper(): IDirective {
3 return {
4 template: `
Matteo Scandoloa242c872017-01-12 15:13:00 -08005 <a ng-if="col.link" ui-sref="{{col.link(item)}}">
Matteo Scandoloee655a12016-12-19 15:38:43 -08006 <div ng-transclude></div>
7 </a>
8 <div ng-transclude ng-if="!col.link"></div>
9 `,
10 restrict: 'A',
11 transclude: true
12 };
13};