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.

How do i add a new row ?

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, post on Stackoverflow or Gitter

Current behavior

Not provided adding a row functionality

Expected behavior

There should be some implementation for adding a new row

What is the motivation / use case for changing the behavior?

I have a use case where many different tables come from server (as JSON) and some data could be editable while user can add more data to the existing table without removing / overriding previous one. So the requirement is to have a ‘Add New Row’ functionality Didn’t find anyway to perform this functionality

Please tell us about your environment:

  • Table version: 0.8.x

Table version: 8.0.0

  • Angular version: 2.0.x

Angular version: 2.4.0

  • 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]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
amcdnlcommented, Aug 20, 2017

The change detection is on push so the original row array needs to be a new instance.

this.rows = [...this.rows, myNewRow];
10reactions
Iraeciocommented, Jun 8, 2017

this.rows.splice(row.$$index, 1); // but dont work

let rows = […this.rows]; rows.splice(row.$$index, 1); this.rows = […rows]; // and work update table whitout row

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a cell, row, or column to a table - Microsoft Support
Shift cells down. Insert a cell and move the existing cells down one row. A new row is added at the bottom of...
Read more >
How to add one row in an existing Pandas DataFrame?
We can add a single row using DataFrame.loc. We can add the row at the last in our dataframe. We can get the...
Read more >
Excel Tips: Add a New Row with a Shortcut - GCF Global
Sometimes you may want to add a blank row to your spreadsheet. Luckily, there is an easy keyboard shortcut for this: Ctrl+Shift+Plus. Simply...
Read more >
How to Add or Insert Row to Pandas DataFrame?
To append or add a row to DataFrame, create the new row as Series and use DataFrame.append() method. In this tutorial, we shall...
Read more >
How to Add / Insert a Row into a Pandas DataFrame - Datagy
The easiest way to add or insert a new row into a Pandas DataFrame is to use the Pandas .append() method. The .append()...
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