Closed omelsoft closed 5 years ago
Did you manage to find a way to do this? I need to get the range label as well.
I was able to add this functionality by adding the label param and the rangeLabel property in the angular-daterangepicker.js.
}), function (start, end, **label**) {
return $scope.$apply(function() {
return $scope.model = opts.singleDatePicker ? start : {
startDate: start,
endDate: end,
**rangeLabel: label**
};
});
});
Hello,
The following code using the standard implementation logs the "label" whenever a pre-defined range is selected. The label is the key index of the pre-defined ranges.
Is this already supported or has anyone already raised this concern?
Thank you.