Hello, I have a problem with the ejs-tooltip, the tooltip is creating <div> and mess with the css childs styles.
I want to add a tooltip to an list item in a ejs-listview, I have the list-content style applyied but when I sorround it with the ejs-tooltip, the list-content style class is not detected.
Code without the ejs-tooltip
<ng-template #itemTemplate let-filter>
<div
#element
id="filter-item"
class="e-list-wrapper e-list-avatar pr-1"
>
<span class="e-avatar e-avatar-small" style="background-color: transparent;"
><ejs-checkbox
[checked]="selectedCustomFilter?.id === filter?.id"
(change)="handleCustomFilterChange(filter, $event)"
></ejs-checkbox
></span>
<div class="e-list-content py-1 pl-2 d-flex align-items-center">
<span class="mr-4">{{ filter?.name }}</span>
<span *ngIf="filter?.nodes && filter.nodes.length > 0">
<ejs-tooltip [content]="'tooltip.HasNodes' | translate" position="TopCenter" target="#hasNodes">
<i id="hasNodes" class="fas fa-exclamation-circle"></i>
</ejs-tooltip>
</span>
<div class="d-flex flex-nowrap ml-auto">
<button
ejs-dropdownbutton
scs-dropdown
[items]="dropDownListActions"
(select)="handleDropDownAction($event, filter)"
></button>
</div>
</div>
</div>
</ng-template>
Cod with the ejs-tooltip
<div
#element
id="filter-item"
class="e-list-wrapper e-list-avatar pr-1"
[ngClass]="{ 'loading-bg': (removingFilterId$ | async) === filter.id }"
>
<span class="e-avatar e-avatar-small" style="background-color: transparent;"
><ejs-checkbox
[checked]="selectedCustomFilter?.id === filter?.id"
(change)="handleCustomFilterChange(filter, $event)"
></ejs-checkbox
></span>
<ejs-tooltip target="#listItem" position="TopCenter" content="'CONTENT'">
<div id="listItem" class="e-list-content py-1 pl-2 d-flex align-items-center">
<span class="mr-4">{{ filter?.name }}</span>
<span *ngIf="filter?.nodes && filter.nodes.length > 0">
<ejs-tooltip [content]="'tooltip.HasNodes' | translate" position="TopCenter" target="#hasNodes">
<i id="hasNodes" class="fas fa-exclamation-circle"></i>
</ejs-tooltip>
</span>
<div class="d-flex flex-nowrap ml-auto">
<button
ejs-dropdownbutton
scs-dropdown
[items]="dropDownListActions"
(select)="handleDropDownAction($event, filter)"
></button>
</div>
</div>
</ejs-tooltip>
</div>
Attached I add the screenshots of the style differences.
How can I attach an element to a tooltip without the need that element to the ejs-tooltip child html.
Thanks
Attachment:
Desktop_d73dbf9d.zip