feature-libs/organization/administration/components/shared/table/active-link/active-link-cell.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | cx-org-active-link-cell |
| templateUrl | ../cell.component.html |
Accessors |
| tabIndex |
gettabIndex()
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { CellComponent } from '../cell.component';
@Component({
selector: 'cx-org-active-link-cell',
templateUrl: '../cell.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ActiveLinkCellComponent extends CellComponent {
get tabIndex() {
return 0;
}
}
<a
*ngIf="linkable; else text"
[routerLink]="{ cxRoute: route, params: routeModel } | cxUrl"
[tabIndex]="tabIndex"
>
<ng-container *ngTemplateOutlet="text"></ng-container>
</a>
<ng-template #text>
<span class="text" title="{{ property }}">{{ property }}</span>
</ng-template>