src/ui/menu/smart-toolbar-menu/smart-toolbar-menu-item.renderer.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | SmartToolbarMenuItemRenderer |
| templateUrl | ./smart-toolbar-menu-item.renderer.html |
Properties |
Methods |
Inputs |
Accessors |
constructor(menuStructureService: SmartMenuStructureService)
|
||||||
|
Parameters :
|
| cssClass |
Type : string
|
| item |
Type : any
|
| showIcon |
Type : boolean
|
| isImage | ||||||
isImage(itemImage: string)
|
||||||
|
Parameters :
Returns :
boolean
|
| onItemClick |
onItemClick()
|
|
Returns :
void
|
| templateContainer |
Type : ViewContainerRef
|
Decorators :
@ViewChild('templateContainer', {read: ViewContainerRef, static: true})
|
| isTemplateItem |
getisTemplateItem()
|
|
Returns :
boolean
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : smart-toolbar-menu-item.renderer.html
Purpose : Template for Smart Toolbar Menu Item.renderer.
Author(s) : Oana Sucigan
Created : Sep 08, 2021
--------------------------------------------------------------------------
-->
<div (click)="onItemClick()" kendoTooltip style="padding-inline: 10px">
@if (!isTemplateItem) { @if (showIcon && (!!item.imageUrl ||
!!item.iconClass)) {
<div style="margin-inline-end: 8px; float: inline-start">
@if (item.imageUrl) {
<img class="smart-toolbar-menu-item-image" [src]="item.imageUrl" />
} @if (item.iconClass) {
<i [ngClass]="item.iconClass"></i>
}
</div>
}
<div style="float: left" [title]="item.tooltip" [class]="cssClass">
{{ item.title }}
</div>
}
<div #templateContainer></div>
</div>