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

Not able to add html to the row header

Asked by Jr
2 days ago.

I’m trying to add button or badge to the row header and allow it to be clickable. Its not showing up even though I see I should be able to set the html & css with onBeforeRowHeaderRender. This is for the angular component.

Are there any examples of this or restrictions for lite users?

Answer posted by Dan Letecky [DayPilot]
1 day ago.

You can set a custom HTML for the row header using onBeforeRowHeaderRender like this:

onBeforeRowHeaderRender: args => {
  args.row.html = `<div style="font-weight:bold; margin-bottom:5px;">${args.row.name}</div>`;
}

However, this is just raw HTML and it doesn’t let you include Angular-specific tags and properties.

The Lite version doesn’t support Angular components in the row headers yet.

One of the upcoming releases will add support for active areas in row headeers which can be used to add active elements with a custom Angular click handler.

Comment posted by Jr
1 day ago.

Thank you!

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):