How to add attribute to tr using JSON and Footable v3? -


i'm using footable 3.0.9 , loading in data using json. example: http://fooplugins.github.io/footable/docs/examples/component/showcase.html

i add html attribute each <tr>, in case 'data-id', can use js on row. id set in json, i'm not sure how set data-id attribute on tr

i not familiar footable jquery can set data attribute easily.

var = $('#mydiv').data('id'); //getter  $('#mydiv').data('id', 'mydiv_1'); //setter 

so in footable code:

$editor.find('#id').val(values.id); $editor.find('#id').data('id', values.id);