I have this settings that creates my reactive table
settings: function () {
return {
collection: 'examsettings',
rowsPerPage: 5,
showFilter: true,
showNavigation: 'auto',
fields: [
{ key: '_id', label: 'Id' },
{ key: 'examschoolid', label: 'School Id' },
{ key: 'examname', label: 'Exam Name' },
{ key: 'examay', label: 'Exam Academic Year' },
{ key: 'examterm', label: 'Exam Term' },
{ key: 'examclass', label: 'Exam Class' },
{ key: 'examdate', label: 'Exam Date' }
],
useFontAwesome: true,
group: 'client'
};
},
Is it possible to access current row data when creating a dynamic column,for instance
{
key: 'enames',
label: 'Exam Term Names ',
fn: function(t){
var t = this;
var tn = t.examterm;
var cursor = Terms.findOne(tn);
return cursor.map(function(doc) {
return doc.termnames;
});
}
},