akveo / akveo/ng2-smart-table

How to get multiple buttons in 2 different columns in ng2-smart-table Angular2

未关闭
#460 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

I want to show buttons in more than 1 column in ng2-smart table in angular 2?

Has any 1 achieved this?

AS of now i have:

@Component({
selector: 'button-view',
template: `
Order Details
`
})
export class ButtonViewComponent implements ViewCell, OnInit {
...
}

export class OrderIssueComponent implements OnInit {

source: LocalDataSource;
...

button: {
title: 'Order Details',
type: 'custom',
renderComponent: ButtonViewComponent,

},
}

I want to use another different button name, but i am getting same button in both columns

![image](https://user-images.githubusercontent.com/16320168/28723387-3593199c-73d4-11e7-94e2-d2c00d3af289.png)

If i try like below, i get same 'Order details' button twice in both the columns

button: {
title: 'Order Details',
type: 'custom',
renderComponent: ButtonViewComponent,

},

button2: {
title: 'Service orders',
type: 'custom',
renderComponent: ButtonViewComponent,

},

I need to get 'Service Orders' button

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。