adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

[Feature]: Icon component - allow custom urls for icons

Open koch-crsd opened this issue 1 year ago • 0 comments

Description

Hi guys,

could you please enhance the icon component to allow custom urls instead of forcing the feather icons lib!?

I would possibly see here some logic like given “icon” name isn’t found in the feathericons lib, then try to load as given url? So in the resource-options itself i could then just give a src-url instead of the icon name like in the following screenshot commented..?

242740223-d63383ef-3abd-46bc-9f7a-71df37cc6cb3

@dziraf mentioned the following in the adminJS "help" channel within slack:

Something like: icon: string | { imgSrc: string } could probably work. Can you create a Github issue for this request?

https://adminbro.slack.com/archives/C011WETJSCB/p1685614592159569?thread_ts=1685453058.620609&cid=C011WETJSCB

Thanks much!

Suggested Solution

@dziraf mentioned the following in the adminJS "help" channel within slack:

Something like: icon: string | { imgSrc: string } could probably work. Can you create a Github issue for this request?

https://adminbro.slack.com/archives/C011WETJSCB/p1685614592159569?thread_ts=1685453058.620609&cid=C011WETJSCB

Alternatives

No response

Additional Context

No response

koch-crsd avatar Jun 11 '23 17:06 koch-crsd