Horizontal Menu

Importing

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

import { HorizontalMenuComponent } from './@pages/components/horizontal-menu/horizontal-menu.component';
@NgModule({
  declarations : [HorizontalMenuComponent,...]
})
export class AppModule(){}

Example Menu

    <pg-horizontal-menu [Items]="menuItems" HideExtra="4">
        <ng-template #mobileSidebarFooter>
            <a href="#" class="search-link d-flex justify-content-between align-items-center d-lg-none" (click)="openSearch($event)">Tap here to search <i class="pg pg-search float-right"></i></a>
        </ng-template>
    </pg-horizontal-menu>

API

Parameter

Instructions

Type

Defaults

Items

List of menu items in an array

array

null

HideExtra

Will force the assigned number of menu items to be hidden / wrapped in "more" section

number

null

Label

Description

Type

Example

label

Name of the menu item that appears

string

Dashboard

routerLink

Route link path

string

/ui/buttons

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