You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to followed the sample code for reactive query
Template.manageGroups.helpers({
reactiveQuery: function() {
return Session.get('reactiveQuery');
}
});
Template.manageGroups.events({
'change #filter-groups': function (e, t) {
var query = Session.get('reactiveQuery'),
value, active, filter;
filter = $('#filter-groups').val();
if (filter === "all") {
delete query.isActive;
} else {
if (filter === "active")
value = true;
if (filter === "inactive")
value = false;
active = {
isActive: value
}
_.extend(query, active);
}
Session.set('reactiveQuery', query);
}
});
When the page loads, I can filter the table by selecting one of the options. If I select another option, however, the table doesn't redraw, so I can only filter once. I also tried to get it to work by creating a datatable that already exists in the DOM with no success. Do you have any suggestions on how I can get this to work? Thank you for your time.
The text was updated successfully, but these errors were encountered:
Thank you for making this package. It seems I cannot get the reactive query to work properly. First, I include my datatable component:
Then I setup the data in my controller:
I publish data server side:
I tried to followed the sample code for reactive query
When the page loads, I can filter the table by selecting one of the options. If I select another option, however, the table doesn't redraw, so I can only filter once. I also tried to get it to work by creating a datatable that already exists in the DOM with no success. Do you have any suggestions on how I can get this to work? Thank you for your time.
The text was updated successfully, but these errors were encountered: