Hi, I have a context menu which I want to add a custom icon to, I have defined a solid color icon using css,
.docIcon
{
background: #ee414c;
display:block;
width:16px;
height:16px;
position:relative;
}
and used in
{
label: material.name, icon:'docIcon', command: (e) => {
this.execute(mouth, this.target);
}
}
The problem I have is that I need to create a colored Icon based on a RGB value.
As yet I cannot find a way of passing this RGB value to modify the icon in the menu item entry.
Any suggestions ....
Regards
Custom Icons in menu item
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
ContextMenu supports font icons, which type of library do you use for custom icons?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest