【发布时间】:2019-11-28 11:19:25
【问题描述】:
我在 Angular 应用程序中使用 angular-slickgrid。我想向 headermenu 添加更多菜单项。 以下是我正在使用的代码:
column.header = {
menu: {
items: [
// add Custom Header Menu Item Commands at the bottom of the already existing internal custom items
// you cannot override an internal command but you can hide them and create your own
// also note that the internal custom commands are in the positionOrder range of 50-60,
// if you want yours at the bottom then start with 61, below 50 will make your command(s) on top
{
iconCssClass: 'fa fa-question-circle',
disabled: (column.id === 'effort-driven'), // you can disable a command with certain logic
titleKey: 'GROUP', // use "title" as plain string OR "titleKey" when using a translation key
command: 'group',
positionOrder: 61
}
]
}
};
【问题讨论】:
-
我按照链接github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/… 中提到的步骤仍然面临同样的问题
标签: javascript angular slickgrid