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

Render Angular component into DayPilotMonth event

Asked by Anonymous
5 years 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]
5 years 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
5 years ago.

Thank you Dan!

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