Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82031

Create multiple blank rows

$
0
0

Hi, I have created a button that creates a new row, without Editor appearing, and it works fine:

//Create Empty  
        new $.fn.dataTable.Buttons(table, [{
            extend: "create",
            text: "Create Empty Row",
            action: function(e, dt, node, config) {
                editor.create(false).submit();
            }
        }]);

        table
            .buttons().container().appendTo($('#createempty'));

How might I go about extending this so that I can create 5 blank rows with one button click? Can I create multiple actions with the above code?


Viewing all articles
Browse latest Browse all 82031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>