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

ERROR Error: DayPilot.Scheduler: The placeholder element not found: 'dp_158159830263098078'.

Asked by Vlad
5 months ago.

If I want my daipilot sheduler to appear dynamically when I press a button, what do I need to do?
Because now I get an error

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

You can use *ngIf on the <daypilot-scheduler> element:

<daypilot-scheduler [config]="config" [events]="events" #scheduler *ngIf="visible"></daypilot-scheduler>

You can also create the component dynamically using createComponent():
https://code.daypilot.org/28800/how-to-create-the-angular-scheduler-component-dynamically

Comment posted by Emmy
4 months ago.

Thank you

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