adminjs
adminjs copied to clipboard
[Feature]: Icon component - allow custom urls for icons
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..?
@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