RelationManager section icon

Hello, I'm trying to add an icon to the section for my RelationManager. I've added an $icon variable to my RelationManager but it doesn't show up anywhere.
Schermafbeelding_2024-11-04_om_10.59.16.png
Solution
I think you are correct, doesn't seem possible with built-in functions. I ended up using the following workaround:

I added the $icon variable like usual at the top of the file and in the 'table' function I added the 'heading' function to manually set it to a HtmlString. The code looks like this:
->heading(new HtmlString(
    '<div class="flex items-center gap-3">' . svg(self::$icon, 'fi-section-header-icon self-start text-gray-400 dark:text-gray-500 fi-color-{$iconColor} h-6 w-6')->toHtml() . $table->getheading() . '</div>'
))


and gives me the following output:
Schermafbeelding_2024-11-05_om_10.11.41.png
Was this page helpful?