question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delete buttons in columns, how to do it?

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[ ] support request => Please do not submit support request here

Current behavior tables without buttons in columns

Expected behavior deleting rows and sending something on click of button in colum

Reproduction of the problem

What is the motivation / use case for changing the behavior? make it more popular

Please tell us about your environment:

  • Table version: 0.7.x
  • Angular version: 2.0.x
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

    <ngx-datatable
      class='material'
      [columns]="columns"
      [columnMode]="'force'"
      [headerHeight]="50"
      [footerHeight]="50"
      [rowHeight]="'auto'"
      [limit]="10"
      [rows]='rows'>
      <ngx-datatable-column name="Name" [width]="300"></ngx-datatable-column>
      <ngx-datatable-column name="Gender"></ngx-datatable-column>
      <ngx-datatable-column name="Age"></ngx-datatable-column>
      <ngx-datatable-column name="Options">
        <button md-raised-button color="warn">Delete</button>
      </ngx-datatable-column>
      
    </ngx-datatable>

Nothings happens, can somebody write code for this? I would write ngFor and so on but this table is not very customizable and I need only this feature. Thanks in advance.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:31 (1 by maintainers)

github_iconTop GitHub Comments

26reactions
aloysius-timcommented, Apr 21, 2017

Hey guys, I can’t see any documentation on the customs templates ! Would be great to have one.

17reactions
Badhumveecommented, Aug 6, 2017

Any working example plunker and document with custom template will be helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to show edit delete button in one column? - Stack Overflow
I want to show Edit and Delete Button in one column But I am unable to do that. Let me share my code...
Read more >
how to remove delete button from gridview column - MSDN
You need to remove the 3 button fields generated by the GridView and create template fields with 3 buttons in it. Set the...
Read more >
Custom insert and delete column buttons
The default insert and delete row button type has only two options: Insert Row and Delete Row. So how to achieve the effect...
Read more >
Is there any way to put Edit Delete and Add buttons to the ...
We noticed the demo site has an example about column command, but that can only put Edit Delete or Save Cancel into a...
Read more >
Add Buttons To Delete Rows Excel VBA Macro - YouTube
In this video we will add buttons to each row with data in a worksheet, and assign another macro to each of them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found