Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MenuItemIconDirective

Selector for the icon template of a menu item. Use this directive if you want use icons another way than as a class of an <i></i> element.

example

Using mat-icon.

<itl-menu [dataSource]="menuDataSource" (menuItemClick)="onMenuItemClick($event)">
 <ng-template itlMenuItemIcon let-icon>
   <mat-icon>{{icon}}</mat-icon>
 </ng-template>
</itl-menu>

Hierarchy

  • MenuItemIconDirective

Index

Constructors

Properties

Constructors

constructor

Properties

template

template: TemplateRef<any>

Generated using TypeDoc