Hi,
I would like to know if I can setup a tooltip to show only when hovered against a textbox icon? I was able to generate the tooltip when I hover over the Icon but it also shows when I hover on the textbox. Please see the code below I have used to implement this.
<SfTooltip ID="Tooltip" @ref="sttMobile" Content="@Value" Position="Position.BottomRight"> <SfTextBox @ref="sftPrefferredContactIconMobile" ID="Mobile" @bind-Value="@User.Mobile" Created="@PrefferedContactIconForMobile">
</SfTextBox>
</SfTooltip>
@code{
SfTextBox sftPrefferredContactIconMobile;
SfTooltip sttMobile;
private string Value { get; set; } = default!;
public async Task PrefferedContactIconForMobile()
{
var touchHover = EventCallback.Factory.Create<MouseEventArgs>(this, touchIconMouseHover);
await sftPrefferredContactIconMobile.AddIcon("append", "e-icons e-radio-button", new Dictionary<string, object>() { { "onmouseover", touchHover }});
}
public void touchIconMouseHover()
{
Value = "Preferred method of contact";
}
}