dependabot[bot] on npm_and_yarn
chore(deps-dev): bump semantic-… (compare)
selectFilterthat simply disables those hours, but the user will still see them - See https://dalelotts.github.io/angular-bootstrap-datetimepicker/components/DlDateTimePickerComponent.html#selectFilter. The second option is to override the HourModelProvider - See https://dalelotts.github.io/angular-bootstrap-datetimepicker/classes/DlHourModelProvider.html
selectFilter- see https://dalelotts.github.io/angular-bootstrap-datetimepicker/components/DlDateTimePickerComponent.html#selectFilter which is called once for every date in the view (rather than one call with all of the dates. It should work the same but if you have any issues, please let me know.
selectFilter- see https://dalelotts.github.io/angular-bootstrap-datetimepicker/components/DlDateTimePickerComponent.html#selectFilter which is called once for every date in the view. Just return
falsefor any date prior to today
howthe value was set and that seems like a code smell to me.
@dalelotts I have the datepicker in a modal. When user doesn't finish selecting date time and closes the modal, the datepicker should display from day view. In my case its showing from where the selection left off. Yes, I tried setting the 'startView' to 'day' again when user closes the modal popup. Still date picker is displayed from time view. Please find my code below.
<dl-date-time-picker [(maxView)]='year' [(minView)]='minute'
//Initial Datepicker config
startView = 'day';
rightIconClass = [
leftIconClass = [
//when user closes modal. on close icon call back I have reset the startView to 'day'.
function - the second parameter is view name, maybe you can track the view the user is currently on my saving the view name as the 'startView' then resetstartView
to the original value onchange` - just an idea, I didn't try it.
Hi @dalelotts, I have tried the way you suggested but it dint work. Here in I am sharing sample working example of my requirement. Kindly take a look and assist. We have deployment scheduled in April first week.
Please note on click of close or Cancel button of modal, I am setting startView to 'day' and also resetting the ngModel date variable. When I re-open the modal date picker is displaying the view I left before closing the modal. Thanks.
Hello, thanks for the awesome perfectly working datetimepicker!
I am creating events to add to Google Calendar where you first pick a begin date, [(selectedDate)} double binding, this works.
Now, I want the end datetimepicker to pop up starting on the selected start date.
I saw that the startDate needs a number, what kind of number? I converted the selectedDate to a Number but this didn't work.