ActivityTimelineLWC icon indicating copy to clipboard operation
ActivityTimelineLWC copied to clipboard

Any way to set the icon dynamically?

Open riekusr opened this issue 2 years ago • 3 comments

Hi, I want to have different icons for records coming out of the same object. Any way to support having a field hold the URL so i can do something like this: image

Or any other way / workaround? I tried adding the object multiple times with different configurations and WHERE clauses but that unfortunately is also not supported.

riekusr avatar Oct 11 '23 21:10 riekusr

Alternatively support IMG AND HYPERLINK tags in the title field so I can format the icon myself: image

riekusr avatar Oct 11 '23 21:10 riekusr

Hi @riekusr, to have different child implementations for the same object, you would need to use the apex dataprovider. You can for instance create 2 apex dataproviders for the same object, but use different filters / icons / fields to show. There is an example provider in this repo.

rbklaassen avatar Oct 12 '23 07:10 rbklaassen

@rbklaassen Using the apex dataprovider on the task object to change icons seems to be overwritten by timelineItemTask.js

jvolkov avatar Apr 11 '24 19:04 jvolkov