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

Render Angular 5 component into DayPilotMonth cell template

Asked by Ricardo Mello
4 years ago.

Is is possible to render a angular component into DayPilotMonth cell template html?

I'm trying to pass nativeElement as HTML attribute, but it doesn't work. Only renders "[object HTMLElement]".

onBeforeCellRender = (args: any) => {
const factory = this.resolver.resolveComponentFactory(CellComponent);
const component = factory.create(this.injector);
component.instance.content = 'testContent';
args.cell.html = component.location.nativeElement;

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