angular - 排序不适用于在 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',
},
},
解决方案
推荐阅读
- javascript - HTML 文本输入未使用 Knockout 绑定更新
- python - 我如何在python中销毁最后一个日志对象
- haskell - 以纯/函数式语言(Elm/Haskell)实现自引用/指针
- visual-studio-code - 有没有办法在 VS Code 中禁用选择突出显示?
- javascript - 安全地使用图例定义图例后如何格式化图例中的数字
- android - React Native 屏幕在 Android 顶部被切断
- python - BatchNormalization 是跨批次使用移动平均值还是仅使用每批次?以及如何跨批次使用移动平均线?
- json - 使用动态键解析来自 JSON 的地图列表
- python - 在 Django 服务器上找不到页面 404?
- reactjs - 具有服务器端行模型的外部过滤网格