Select to view content in your preferred language

How can I change the widget group icon in WAB (Dev Edition)?

2847
6
Jump to solution
03-03-2017 10:55 AM
FrancescoTonini2
Frequent Contributor

Hello,

Can anyone help me understand whether it is possible to change the default icon of the widget group from a WAB Developer Edition template? By default, the group widget icon looks like a folder with three dots in it is used when grouping multiple widgets into a single named group (see attached image). Thank you!!

Widget group icon in Web AppBuilder

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Francesco,

  Ahh. I forgot they changed that. You can add a unique icon for each group by adding an icon property to the group object in your main config.json. I added line 4:

    "groups": [
      {
        "label": "New Group",
        "icon": "jimu.js/images/group_icon2.png",
        "widgets": [
          {

View solution in original post

6 Replies
RobertScheitlin__GISP
MVP Emeritus

If you made a change it would affect all group icons not just one.

Just replace or edit the image:

[install dir]\server\apps\[app#]\jimu.js\images\group_icon.png

FrancescoTonini2
Frequent Contributor

Thanks! I see, that's what I was afraid of. Are there workarounds for using a different group icon for each custom group I decide to create?  

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Francesco,

  Ahh. I forgot they changed that. You can add a unique icon for each group by adding an icon property to the group object in your main config.json. I added line 4:

    "groups": [
      {
        "label": "New Group",
        "icon": "jimu.js/images/group_icon2.png",
        "widgets": [
          {
CCWeedcontrol
Frequent Contributor

I was able to change the group icons but the color of the icon it self is blue so it make my graph icon hard to see. How do i change the color of the widget button?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

CC,

   That is a tough one. The Launchpad theme assigns the background colors for those buttons at random.

0 Kudos
CCWeedcontrol
Frequent Contributor

aw i see, thanks for the reply.

0 Kudos