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

API method to get currently edited field

$
0
0

Would have a method so for example if im bubble editing, I can hook into preOpen and get the current field if applicable and optionally change the set data from the modifier(). Right now I have to do:

table.column('assigned_users:name').nodes().flatten().to$().on('click', function () {
                let data = table.cell(this).data()
                self.editor.field('assigned_users').set(_.pluck(data.assigned_users, 'id'))
              })

Viewing all articles
Browse latest Browse all 82279

Trending Articles



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