首页 > 解决方案 > 排序不适用于在 ng2 智能表角度中的列数据上具有超链接的列

问题描述

我有一个名为“链接”的列有链接,但排序不适用于该列。请帮忙

  data = [
{
  id: 1,
  name: 'Leanne Graham',
  username: 'Bret',
  link: '<a href="http://www.google.com">Google</a>',
},
{
  id: 2,
  name: 'Ervin Howell',
  username: 'Antonette',
  link: '<a href="https://github.com/akveo/ng2-admin">Ng2 Admin</a>',
}];

 settings = {
columns: {
  id: {
    title: 'ID',
   
  },
  name: {
    title: 'Full Name',
  
  },
  username: {
    title: 'User Name',
  },
  link: {
    title: 'Link',
    type: 'html',
  
  },
},

ng2-smart-table 中的超链接示例

标签: angularng2-smart-table

解决方案


在此处输入图像描述

也许这可以帮助您 在此处输入链接描述

在此处输入图像描述


推荐阅读