Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Add an option to completely disable custom ranges selector #5

Closed
petethepig opened this issue Dec 21, 2015 · 3 comments
Closed

Add an option to completely disable custom ranges selector #5

petethepig opened this issue Dec 21, 2015 · 3 comments
Assignees

Comments

@petethepig
Copy link
Contributor

Will probably look like this:
image

@petethepig petethepig self-assigned this Dec 21, 2015
@petethepig
Copy link
Contributor Author

There must be an option to keep the period type selector though
image

@guruprasadBlore
Copy link

Hi,

I badly need your help, please read below.

The period selection option is not working for me at all.Below is my piece of code.
` $(".daterangepicker-field").daterangepicker({
timeZone: 'utc',
firstDayOfWeek: 1,
minDate: [moment().subtract(30, 'years'), 'inclusive'],
maxDate: [moment(), 'inclusive'],
startDate: moment().subtract(29, 'days'),
endDate: moment(),
forceUpdate: true,
ranges:{
'Last 30 days': [moment().subtract(29, 'days'), moment()],
'Last 90 days': [moment().subtract(89, 'days'), moment()],
},
single: true,
periods:['month','quarter','year'],
period: 'month',
standalone: false,
anchorElement: null,
parentElement: document.body,

},
	 function (startDate, endDate, period) {
		  $(this).val(startDate.format('L') + ' – ' + endDate.format('L'))
		
});`

Below is screenshot
my_daterange_picker

@guruprasadBlore
Copy link

I just need a period selector like this.
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants