Good morning,
Hoping someone here might have some ideas on this. I have a kendo-menu, and need to disable the menu-items underneath under certain circumstances:
So something like this:
<
kendo-menu
class
=
"kendo-menu-project"
>
<
kendo-menu-item
[disabled]="isThisDisabled()">
<
ng-template
kendoMenuItemTemplate>
<
tooltip-wrapper
[tooltipContent]="'tooltip i'd like to show'">
<
span
id
=
"pg-mmenu-add-collate"
(click)="doSomething()">Menu Item 1</
span
>
<
tooltip-wrapper
>
</
ng-template
>
</
kendo-menu-item
>
....
The tooltip-wrapper is one of our components, whose template creates a kendoTooltip :
<
span
kendoTooltip
=
""
[showOn]="isToolTipHidden() ? 'none' : 'hover'"
[tooltipWidth]="tooltipWidth"
[tooltipClass]="(warning) ? 'c-warning' : ''"
filter
=
".c-tooltip-element"
[tooltipTemplate]="listView ? list : default"
[position]="position"
class
=
"c-tooltip-wrapper"
>
<
span
class
=
"c-tooltip-element"
[ngClass]="{ 'no-hide' : !overflowHidden }" [attr.tooltip-content]="listView ? tooltipContent.join('<br/>') : tooltipContent">{{spanText}}<
ng-content
></
ng-content
></
span
>
</
span
>
<
ng-template
#list let-anchor>
<
div
*ngFor="let listValue of anchor.nativeElement.getAttribute('tooltip-content').split('<br/>')">
<
span
>{{listValue}}</
span
>
</
div
>
</
ng-template
>
<
ng-template
#default let-anchor>
<
span
>{{anchor.nativeElement.getAttribute('tooltip-content')}}</
span
>
</
ng-template
>
No problems showing the tooltip under normal circumstances, but of course, once the menu items is disabled, the hover event doesn't propagate down to the tooltip component so it doesn't show. Is there anyway to accomplish this when the menu item is disabled?