Angular-slickgrid 未显示自定义标题菜单项文本(只有标题菜单项图标可见)
Angular-slickgrid is not showing custom headermenu item text(Only headermenu item icon is visible)
我在 angular application.I 中使用 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
}
]
}
};
在 运行 应用程序上,只有图标可见,上面的标题菜单没有文字 item.Screen 附件:
答案很可能在评论中
titleKey: 'GROUP', // use "title" as plain string OR "titleKey" when using a translation key
titleKey
是当您使用翻译时,您很可能没有该翻译。您应该只将 title
与常规文本一起使用,这应该有效
我在 angular application.I 中使用 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
}
]
}
};
在 运行 应用程序上,只有图标可见,上面的标题菜单没有文字 item.Screen 附件:
答案很可能在评论中
titleKey: 'GROUP', // use "title" as plain string OR "titleKey" when using a translation key
titleKey
是当您使用翻译时,您很可能没有该翻译。您应该只将 title
与常规文本一起使用,这应该有效