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.
Solution:Jump to 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:
```php
->heading(new HtmlString(...
5 Replies
icon where?
On the image I attached, there is a title 'Orders'. I want to add an icon in front of there like the 'Objecten' section. The orders are loaded in via a RelationManager but I can't find a way to add an icon to it
I think icons are only when managers are as tabs
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:
and gives me the following output: