Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 角网格未显示自定义标题菜单项文本(只有标题菜单项图标可见)_Javascript_Angular_Slickgrid - Fatal编程技术网

Javascript 角网格未显示自定义标题菜单项文本(只有标题菜单项图标可见)

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

我在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
        }
      ]
    }
  };
运行应用程序时,只有图标可见,上面的headermenu项没有文本。附加屏幕截图:
答案很可能在评论中

titleKey: 'GROUP', // use "title" as plain string OR "titleKey" when using a translation key

titleKey
是指当你使用翻译时,你很可能没有翻译。您只需将
标题
与常规文本一起使用即可

我正在遵循链接中提到的步骤,但仍然面临相同的问题。这是我的错误,我不应评论标题