Javascript 角网格未显示自定义标题菜单项文本(只有标题菜单项图标可见)
我在angular应用程序中使用angular slickgrid。我想向headermenu添加更多菜单项。 下面是我正在使用的代码:Javascript 角网格未显示自定义标题菜单项文本(只有标题菜单项图标可见),javascript,angular,slickgrid,Javascript,Angular,Slickgrid,我在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 overr
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
}
]
}
};
运行应用程序时,只有图标可见,上面的headermenu项没有文本。附加屏幕截图:
答案很可能在评论中
titleKey: 'GROUP', // use "title" as plain string OR "titleKey" when using a translation key
titleKey
是指当你使用翻译时,你很可能没有翻译。您只需将标题
与常规文本一起使用即可我正在遵循链接中提到的步骤,但仍然面临相同的问题。这是我的错误,我不应评论标题