[英]how to give hyperlinks to data in ng2 smart table
在您的settings
更改為此
name: {
title: 'name',
type: 'html',
editor: {
type: 'custom',
component: CustomEditorComponent,
},
},
然后在您的data
中將name
更改為這樣
name: '<a href="http://www.google.com">Google</a>',
然后復制這個文件https://github.com/akveo/ng2-smart-table/blob/master/projects/demo/src/app/pages/examples/custom-edit-view/custom-editor.component.ts到您的文件夾,然后在app.module.ts
上聲明它
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.