Open whitmanlui opened 7 years ago
@whitmanlui You will have to add custom filter to enable range filter. Check - Customize filter algorithm Example , Example with filtering by age has range filtering.
but i cannot do like this Change filter values programmatically do you have some example? thx my code:
$scope.changeFilter = function () {
var filter = {};
if ($scope.username != "") {
filter['username '] = $scope.username;
}
if ($scope.ageFrom< $scope.ageTo) {
//range filter setting
}
$scope.tableParams.filter(filter);
};
i would like to change or add the range filter here when i click the button
hi, how can i use angularjs to add a range filter? (programmatically)