简体   繁体   中英

How to add anchor tag to ngx-datatable-column

I need to load data from server and load the ngx-datatable. On click on a particular column (link <a href="randomurl"/> or [routerLink]="randomcomponent"), it should redirect to different page or it should show a modal window.

I am new to Angular 2 +

It worked, I used ng-template to accomplish it.

Reference: https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/row-detail.component.ts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM