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
3 months 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;

1 other person also wants an answer.
No reply yet.
New Reply
This reply is
Your name (optional):