Search results

Getting Started

This section briefly explains about how to include a simple Tooltip in your ASP.NET Core Razor application. You can refer ASP.NET Core Razor Getting Started documentation page for introduction part of the system requirements and configure the common specifications.

Importing Syncfusion Blazor component in the application

  1. Install Syncfusion.EJ2.Blazor NuGet package to the application by using the NuGet Package Manager. Please ensure to check the Include prerelease option.
  2. You can add the client-side resources through CDN or local npm package in the <head> element of the ~/wwwroot/index.html page.
    <link href="" rel="stylesheet" />
    <script src=""></script>

Adding component package to the application

Open ~/_Imports.razor file and import the Syncfusion.EJ2.Blazor.Popups packages.

@using Syncfusion.EJ2.Blazor
@using Syncfusion.EJ2.Blazor.Popups

Adding Tooltip component to the application

Now, add the Syncfusion Essential JS 2 Tooltip component in any web page razor in the Pages folder. For example, the Tooltip component is added in the ~/Pages/Index.razor page.

@using Syncfusion.EJ2.Blazor.Popups
<EjsTooltip ID="Tooltip" Content="@Content" Target="#btn">
        <EjsButton ID="btn" Content="Show Tooltip"></EjsButton>

object Content = "Lets go green & Save Earth !!";

Run the application

After successful compilation of your application, simply press F5 to run the application.

Output be like the below.

Tooltip Sample

See Also

Positioning Tooltip

Tooltip Open Mode

Customize the Tooltip

Getting Started with Syncfusion Blazor for Client-Side in .NET Core CLI

Getting Started with Syncfusion Blazor for Server-Side in Visual Studio 2019 Preview

Getting Started with Syncfusion Blazor for Server-Side in .NET Core CLI