【发布时间】:2020-04-03 11:43:09
【问题描述】:
我正在使用 PrimeNG 8.1.1,我想将其中一项推送到右侧(注销和配置文件的子菜单)。
有什么建议吗?
this._menuItems = [
{
label: 'Dashboard',
routerLink: '/dashboard'
},
{
icon:'pi pi-fw pi-user',
items: [
{
label: 'Profile',
icon: 'pi pi-fw pi-user',
command:()=> this.profile(),
},
{
label: 'Logout',
icon: 'pi pi-fw pi-sign-out',
command:()=> this.logout(),
}
]
}
]
【问题讨论】: