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

Can I set to duplicate entire record when in Duplicate as I only have selected a few rows in edit?

$
0
0
{
    extend: 'selected',
    text: 'Duplicate',
    action: function (e, dt, node, config) {
        // Start in edit mode, and then change to create
        editor
            .edit(table.rows({ selected: true }).indexes(), {
                title: 'Duplicate record',
                buttons: 'Create from existing'
            })
            .mode('create');
    }
},

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.


Viewing all articles
Browse latest Browse all 82213

Trending Articles



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