You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Tooltip/Tooltip.razor

20 lines
668 B

@namespace Connected.Components
@inherits UIComponent
<div @attributes="UserAttributes" class="@ContainerClass" style="@RootStyle" @onmouseenter="@HandleMouseOver" @onmouseleave="@HandleMouseOut" @onfocusin="@HandleMouseOver" @onfocusout="@HandleMouseOut" >
@ChildContent
@if (TooltipContent != null || string.IsNullOrEmpty(Text) == false)
{
<Popover Open="_isVisible" Duration="@Duration" Delay="@Delay" AnchorOrigin="@_anchorOrigin" TransformOrigin="@_transformOrigin" Class="@Classname" Paper="false">
@if (TooltipContent != null)
{
@TooltipContent
}
else if (!String.IsNullOrEmpty(Text))
{
@Text
}
</Popover>
}
</div>