我在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
}
]
}
};
答案 0 :(得分:0)
答案很可能是在评论中
titleKey: 'GROUP', // use "title" as plain string OR "titleKey" when using a translation key
titleKey
是当您使用翻译并且很可能没有该翻译的时候。您应该只将title
与常规文本一起使用,并且应该可以正常工作