akveo / akveo/ng2-smart-table

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

Offen
#460 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
1.6k
Forks
867
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.