i using footable display tables , responsive features of object. in table, have fields/cells blank , hide when footable row expanded. right shows label , blank element next it. hide elements blank , think want in footable event "footable_row_detail_updating" , think need syntax or method current selected row.
how go getting jquery selector current expanded row in footable or overlooking might easier.
instead of selecting current row , modifying it's detail row's contents can directly plug createdetail function , there.
for example, following filters out detail data have blank value before calling actual function creates detail row (footable.options.createdetail).
$('.footable').footable({ createdetail: function (element, data, creategroupeddetail, separatorchar, classes) { var filtereddata = $.grep(data, function (prop) { return prop.value !== '' }); footable.options.createdetail(element, filtereddata, creategroupeddetail, separatorchar, classes) } }) you more in same function. example, if there nothing in filtereddata, set text "no detailed data" instead of calling footable.options.createdetail. like
$(element).text("no detailed data") element div contains detail row information.
Comments
Post a Comment