Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 01 22:13

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 01 22:13
    dependabot[bot] closed #482
  • Sep 01 22:13
    dependabot[bot] commented #482
  • Sep 01 22:13

    dependabot[bot] on npm_and_yarn

    chore(deps): bump tar from 4.4.… (compare)

  • Sep 01 22:13
    dependabot[bot] labeled #484
  • Sep 01 22:13
    dependabot[bot] opened #484
  • Aug 11 11:01
    dependabot[bot] labeled #483
  • Aug 11 11:01

    dependabot[bot] on npm_and_yarn

    chore(deps): bump path-parse fr… (compare)

  • Aug 11 11:01
    dependabot[bot] opened #483
  • Aug 04 16:52
    dependabot[bot] labeled #482
  • Aug 04 16:52

    dependabot[bot] on npm_and_yarn

    chore(deps): bump tar from 4.4.… (compare)

  • Aug 04 16:52
    dependabot[bot] opened #482
  • May 28 01:43
    dependabot[bot] labeled #481
  • May 28 01:43

    dependabot[bot] on npm_and_yarn

    chore(deps): bump dns-packet fr… (compare)

  • May 28 01:43
    dependabot[bot] opened #481
  • May 11 03:00
    dependabot[bot] labeled #480
  • May 11 03:00
    dependabot[bot] opened #480
  • May 11 03:00

    dependabot[bot] on npm_and_yarn

    chore(deps): bump hosted-git-in… (compare)

  • May 10 13:17

    dependabot[bot] on npm_and_yarn

    (compare)

  • May 10 13:17
    dependabot[bot] closed #466
f3l1xss
@f3l1xss
@dalelotts Thank you for your prompt response, I'll submit a pr when I have the time
Dale Lotts
@dalelotts
Hey @amchidorian I saw a question come through from you, but I don't see it now. Did you get an answer?
amchidorian
@amchidorian
Hello @dalelotts ! I was wondering how to use the 'classes' attribute of the right and left button, but i finally found out.
But I may have another question, I'm a pretty new Angular user and i'm not quite sure how to use the "set value" accessor of the DlDateTimePickerComponent in order to preselectionned a date
amchidorian
@amchidorian
Well looks like i finally found out ! And btw your datepicker is awesome !
cajaykumar
@cajaykumar
Hello @dalelotts, I want to change the display format shown in the input text box when date is selected. The current format shown in input box is "Mar 7, 2020 12:00 AM" and I want to change this as "YYYY-MM-DD". I have injected the DL_DATE_TIME_DISPLAY_FORMAT in my component constructor but still its showing in same format. Can you please let me know how to fix this.
Thanks.
Dale Lotts
@dalelotts
Thanks @amchidorian glad you got it figured out
cajaykumar
@cajaykumar
Hello @dalelotts , I am using angular 8 date-time picker and have a requirement like if user doesn't finish the selection (say just selected date) and when tries to open date picker should start from dates view again. Could you please assist how can I achieve this?
Thanks.
Dale Lotts
@dalelotts
@cajaykumar I suppose one option might be to change the startView if there is an existing date value.
cajaykumar
@cajaykumar

@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' [(startView)]="startView" [(ngModel)]="startDate" [ngModelOptions]="{standalone: true}" [(minuteStep)]="5" [(rightIconClass)]="rightIconClass" [(leftIconClass)]="leftIconClass" (change)="onInputSelect()">
</dl-date-time-picker>
//Initial Datepicker config
startView = 'day';
rightIconClass = [
'glyphicon', 'glyphicon-arrow-right'
];
leftIconClass = [
'glyphicon', 'glyphicon-arrow-left'
];
//when user closes modal. on close icon call back I have reset the startView to 'day'.

Dale Lotts
@dalelotts
@cajaykumar you'll have to put up a working example if you want me to debug your code.
cajaykumar
@cajaykumar
@dalelotts In your date-picker-input example, whenever user clicks on calendar icon I need to re-render the date picker from day view.
Use case: User select date in day view of date picker and then time view is displayed. User will not select time and clicks anywhere on the page, date-picker is closed and when reopened it is displayed from time-view but not day view. I need to re-render it from start. Kindly assist.
https://stackblitz.com/github/dalelotts/angular-bootstrap-datetimepicker-demo?file=src%2Fapp%2Fexamples%2Fdate-picker-input%2Fdate-picker-input.component.html
Dale Lotts
@dalelotts
@cajaykumar the existing behavior you describe might be exactly what the user wants - I've been in lots of user groups where they say they don't want to have to start over on a something if they make a mistake. Something to think about. Back to your desired behavior, ideally there would be an event raised when the view changes but that doesn't exist. I think the next closest option would be to use the 'selectFilterfunction - 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 resetstartViewto the original value onchange` - just an idea, I didn't try it.
cajaykumar
@cajaykumar

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.

https://stackblitz.com/edit/dalelotts-angular-date-time-picker?file=src/app/app.component.html

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.

Dale Lotts
@dalelotts
I'm sorry, I cannot look at my code and imagine what you want your code to do. I really need to look at your code to get it to do what you want. Nor can I help you on your timeline. You can try codementor.io to find someone to help you. You can hire me directly on codementor if you like but it's certainly not required - https://www.codementor.io/@dalelotts - Maybe try StackOverflow or maybe someone else here has time to help you out given your timeline
stasken
@stasken

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.

Thanks!

Dale Lotts
@dalelotts
@stasken try something like startDate = new Date(1985, OCT, 18).getTime();
stasken
@stasken
Thank you very much, I figured it out you can only provide until seconds to give a valid StartDate. So I extracted them out of the selected beginning date. Thanks!
giolongo
@giolongo
Hello, can i set the minDate In Angular11? I try to use start date but it not works (i have a date prefilled)
Dale Lotts
@dalelotts
As far as I know everything works with Angular 11. Let me know if you find an issue.
giolongo
@giolongo
I set ngModel with new Date, and set minDate with [startDate] with today.getTime. today is public variable in component declared such as public today = new Date().
I can be selected a day before today, where is the issue? What's wrong?
Dale Lotts
@dalelotts
Please provide an example of the code so I can have a look
giolongo
@giolongo
In Html File
<dl-date-time-picker startView="day" maxView="year" minView="minute" minuteStep="5" [startDate]="startDateGetTime" name="scheduled_for" (ngModelChange)="choseDate($event)" [(ngModel)]="date" > </dl-date-time-picker>
In controller
ngOnInit(): void { this.startDateGetTime = this.startDate ? this.startDate.getTime() : new Date().getTime(); }
giolongo
@giolongo
image.png
It is the result
giolongo
@giolongo
I tried to print the startDateGetTime, and the date is correct, i don't know why not work