search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Customer Event Add Modal

Related article: Angular 8 Appointment Calendar Component (TypeScript + PHP/MySQL)
Asked by Anonymous
10 months ago.

Can I call a custom ngbmodal component I've built when scheduling events? If so please can you provide some sample code.

Answer posted by Dan Letecky [DayPilot]
10 months ago.

When the users selects a time range the Scheduler fires the onTimeRangeSelected event:

    onTimeRangeSelected: args => {
      this.create.show(args);
    }

You can modify the event handler to use your own modal dialog.

The information about the selection is stored in the "args" object:
https://api.daypilot.org/daypilot-scheduler-ontimerangeselected/

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.