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
{{ message }}
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
The period selection option is not working for me at all.Below is my piece of code.
`$(".daterangepicker-field").daterangepicker({
forceUpdate: true,
ranges:{
'Last 30 days': [moment().subtract(29, 'days'), moment()],
'Last 90 days': [moment().subtract(89, 'days'), moment()],
},
periods:['month','quarter','year'],
period: ('month' | 'quarter' | 'year')
},
function (startDate, endDate, period) {
$(this).val(startDate.format('L') + ' – ' + endDate.format('L'))
});`
Below is screenshot
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
The period selection option is not working for me at all.Below is my piece of code.
`$(".daterangepicker-field").daterangepicker({
forceUpdate: true,
ranges:{
'Last 30 days': [moment().subtract(29, 'days'), moment()],
'Last 90 days': [moment().subtract(89, 'days'), moment()],
},
periods:['month','quarter','year'],
period: ('month' | 'quarter' | 'year')
},
function (startDate, endDate, period) {
$(this).val(startDate.format('L') + ' – ' + endDate.format('L'))
Below is screenshot
The text was updated successfully, but these errors were encountered: