Skip to content

Custom toolbar button #5516

Answered by NancyMcCallB
ovaisa asked this question in Q&A
May 12, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

We have moved away from the sprite loader in 4.0, but it should still work in 3.5.3.

Still, you should be able to future-proof your code and fix this by doing something like:

import home_logo from "";
:
:
ToolbarItemUtilities.createActionButton(
"home",
100,
IconSpecUtilities.createWebComponentIconSpec(home_logo),
"Home",
:
:

Let me know if you have trouble with it.

Nancy

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ovaisa
Comment options

Answer selected by ovaisa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants