Page 1 of 1

Customize taskMenu icon

Posted: Fri Oct 07, 2022 12:06 pm
by rodel.ocfemia

Hi,

Is it possible to customize the taskMenu icon. Something like this.

headerItems: {
            menu: { type: 'taskMenu', icon: 'my-custom-icon' }
         },

Thanks


Re: Customize taskMenu icon

Posted: Fri Oct 07, 2022 12:38 pm
by tasnim

Hi,
Are you talking about these icons?


Re: Customize taskMenu icon

Posted: Fri Oct 07, 2022 12:42 pm
by rodel.ocfemia

Hi Tasnim,
I'm referring to the default 3 dots icon located at the upper right corner of the card. It's the default icon displayed if we add the taskMenu.


Re: Customize taskMenu icon

Posted: Fri Oct 07, 2022 1:30 pm
by tasnim

Here is how you can achieve it

    features : {
        columnHeaderMenu : {
            items : {
                addTask : {
                    icon : 'b-fa-solid b-fa-square-plus'
                }
            }
        }
    }

Please check docs https://bryntum.com/docs/taskboard/api/TaskBoard/feature/ColumnHeaderMenu
And for icons, please check this guide https://bryntum.com/docs/taskboard/guide/Grid/customization/iconfont#font-awesome


Re: Customize taskMenu icon

Posted: Fri Oct 07, 2022 1:47 pm
by rodel.ocfemia

Hi Tasnim,
I'm referring to the ... icon. I tried inspecting the element using browser and I got the following

<i class="b-taskboard-taskitem b-taskboard-task-menu b-icon b-icon-menu-horizontal" data-role="item-menu" data-field="menu" data-ref="menu" role="presentation" style=""></i>

Re: Customize taskMenu icon

Posted: Fri Oct 07, 2022 2:48 pm
by tasnim

Hi,
You can achieve it with this CSS;

.b-column-header-button::before {
  content : '\f805';
}

You can search for all of the icons in here https://fontawesome.com/search