Class Tooltip
public class Tooltip : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IAsyncDisposable
- Inheritance
-
Tooltip
- Implements
- Inherited Members
Properties
ChildContent
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Delay
[Parameter]
public TimeSpan? Delay { get; set; }
Property Value
Enabled
[Parameter]
public bool Enabled { get; set; }
Property Value
Interactive
[Parameter]
public bool Interactive { get; set; }
Property Value
MaxWidth
[Parameter]
public int? MaxWidth { get; set; }
Property Value
- int?
OnTrigger
[Parameter]
public EventCallback OnTrigger { get; set; }
Property Value
Placement
[Parameter]
public TooltipPlacement Placement { get; set; }
Property Value
ShowOnCreate
[Parameter]
public bool ShowOnCreate { get; set; }
Property Value
Splat
[Parameter(CaptureUnmatchedValues = true)]
public Dictionary<string, object>? Splat { get; set; }
Property Value
TooltipContent
[Parameter]
public RenderFragment? TooltipContent { get; set; }
Property Value
TooltipText
[Parameter]
public string TooltipText { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
OnAfterRenderAsync(bool)
Method invoked after each time the component has been rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs.
This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated.
Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop.
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRenderboolSet to
trueif this is the first time OnAfterRender(bool) has been invoked on this component instance; otherwisefalse.
Returns
Remarks
The OnAfterRender(bool) and OnAfterRenderAsync(bool) lifecycle methods
are useful for performing interop, or interacting with values received from @ref.
Use the firstRender parameter to ensure that initialization work is only performed
once.
OnTriggerAsync()
[JSInvokable("The.Controls")]
public Task OnTriggerAsync()