Adding Personalized Icon to getTopMenuConfig Function in LeftPanelTopMenu

Hey Creatio Community,

I'm currently working on customizing the LeftPanelTopMenu in Creatio, specifically trying to add a personalized icon to the getTopMenuConfig function.

Here's what I've tried so far:

  1. I imported a new image via Creatio's UI, and I can confirm it's in the system.
  2. In my code, I'm attempting to reference this image in the getTopMenuConfig function.

Here's a snippet of my code:

 getTopMenuConfig: function() {
                var menuConfig = [
                    {
                        id: "collapse-button",
                        tag: "CollapseMenu",
                        className: "Terrasoft.HoverMenuButton",
                        style: Terrasoft.controls.ButtonEnums.style.TRANSPARENT,
                        classes: {
                            imageClass: ["button-image-size"],
                            wrapperClass: ["collapse-button-wrapperEl"]
                        },
                        imageConfig: resources.localizableImages.collapseIconSvg,
                        click: {
                            bindTo: "collapseSideBar"
                        },
                        hint: this.getCollapseSideBarMenuItemCaptionConfig(),
                        markerValue: this.getCollapseSideBarMenuItemCaptionConfig()
                    },
					{
                        id: "send-button",
                        tag: "sendbtnMenu",
                        className: "Terrasoft.HoverMenuButton",
                        style: Terrasoft.controls.ButtonEnums.style.TRANSPARENT,
                        classes: {
                            imageClass: ["button-image-size"],
                            wrapperClass: ["collapse-button-wrapperEl"]
                        },
                        imageConfig: resources.localizableImages.sendSvg,
 
                    },

Despite my efforts, the personalized icon isn't appearing. I've double-checked the image name and made sure it's correct.

Has anyone encountered a similar issue or successfully added a personalized icon to the LeftPanelTopMenu? Any insights or suggestions would be greatly appreciated!

Thanks,

ABDERRAHMAN TIGAMI

Like 0

Like

0 comments
Show all comments