File

src/ui/menu/smart-toolbar-menu/smart-toolbar-menu-item.renderer.ts

Metadata

selector SmartToolbarMenuItemRenderer
template
<div
	(click)="onItemClick()"
	style="padding-left: 10px; padding-right: 10px;"
>
	<ng-container *ngIf="!isTemplateItem">
		<div
			*ngIf="showIcon && !!item.imageUrl"
			style="margin-right: 8px; float: left"
		>
			<img
				class="smart-toolbar-menu-item-image"
				[src]="item.imageUrl"
			/>
		</div>
		<div style="float: left;" [class]="cssClass">
			{{ item.title }}
		</div>
	</ng-container>
	<div #templateContainer></div>
</div>
	

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(menuStructureService: SmartMenuStructureService)
Parameters :
Name Type Optional
menuStructureService SmartMenuStructureService No

Inputs

cssClass
Type : string
item
Type : any
showIcon
Type : boolean

Methods

onItemClick
onItemClick()
Returns : void

Properties

templateContainer
Type : ViewContainerRef
Decorators :
@ViewChild('templateContainer', {read: ViewContainerRef, static: true})

Accessors

isTemplateItem
getisTemplateItem()
Returns : boolean
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""