Menu Items

pg-menu-items

Importing

First import it to your app module or any submodule as you wish

import { SharedModule } from './@pages/components/shared.module';
@NgModule({
  imports: [SharedModule,...]
})
export class AppModule(){}

How to use

<pg-menu-items [Items]="menuLinks">
</pg-menu-items>

Label

Description

Type

Example

label

Name of the menu item that appears

string

Dashboard

details

Sub Text that is shown below the label

string

2 Unread

routerLink

Route link path

string

/ui/buttons

iconType

Icon type - Font awesome, Pages Icons, Feather & also supports Letter

string

pg, fe, letter, material

iconName

The class name of the icon or abbreviation letters

string

pg-user

toggle

Sub menu close or open : "close", "open"

string

close / open

externalLink

Used for connecting to another URL

string

http://example.com

target

Used with "externalLink" to open in a new window / tab

string

_blank

submenu

Sub menu items

array[]:string

Last updated