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

Render Angular component into DayPilotMonth event

Asked by Anonymous
9 days ago.

Hi everybody,

I would like to know if there's a quick solution to render an angular component into an event.

I've already inject a component into an event in a DayPilotScheduler using the hook like this:

onDomAddEvent: args => {
console.log("Creating Component for " + args.e.text());
const factory = this.resolver.resolveComponentFactory(<MyComponent>);
const component = factory.create(this.injector);
component.changeDetectorRef.detectChanges();
args.element = component.location.nativeElement;
args.component = component;
}

I've tried to apply this solution in DayPilotMonth but it seems doesn't run.
It is possible to render an angular component into DayPilotMonth event?

Answer posted by Dan Letecky [DayPilot]
4 days ago.

The onDomAddEvent and onDomRemoveEvent event handlers are not yet supported in all components. In the DayPilotMonth component it's now available since 2019.1.3594 (use the latest sandbox version - https://npm.daypilot.org/).

Comment posted by Anonymous
4 days ago.

Thank you Dan!

New Reply
This reply is
Your name (optional):