addRow function is not working properly on version 3.5
See original GitHub issueWhen I want to add row to the top of the table, like this:
$(selector).tabulator("addRow", {_id: 0}, true);
I get this error:
“ReferenceError: activeRows is not defined[Learn More] tabulator.min.js:2:29240”
This code was working on version 3.4.*
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Why is my "add row to table" function not working?
To test if your addData function is working, change the input type of 'submit' to 'button'. If everything is right then it should...
Read more >Office Scripts: Add Row at End of Worksheet - YouTube
Office Scripts: Add Row at End of Worksheet. 3.5 K views 1 ... Content 0:00 Introduction 0:55 Start scripting 6:40 Move logic to...
Read more >Add rows - DataTables example
New rows can be added to a DataTable using the row.add() API method. Simply call the API function with the data for the...
Read more >How to Add / Remove Table Rows Dynamically Using jQuery
Similarly, you can use the .remove() method to remove or delete table rows as well as all everything inside it from the DOM...
Read more >exceljs - npm
Excel Workbook Manager - Read and Write xlsx and csv Files.. Latest version: 4.3.0, last published: a year ago. Start using exceljs in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yay, fixed it! Added activeRows declaration at the start of the function:
@olifolkerd I’m not going to do a PR as you’ll need to compile in gulp and all. Will learn that stuff some day so I can contribute.
@blackgod000 as a temporary fix, change your js src to tabulator.js, open it in a text editor, and add a line
var activeRows = this.activeRows;
at line number 2772, that should make things work for you.Hey @blackgod000
I have pushed a fix for this to the master branch and will include it in this evenings patch release.
Cheers
Oli 😃