/syncfusion-aspnet-core:syncfusion-aspnetcore-popupsfrom Syncfusion ASP.NET Core UI Controls
Comprehensive guide for implementing Syncfusion ASP.NET Core Popup components including Dialog, Predefined Dialog, and Tooltip. Covers modal dialogs, positioning, animations, templates, accessibility, event handling, and various dialog and tooltip interaction patterns.
Ships in Syncfusion ASP.NET Core UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill documents how to implement, configure, and customize the Syncfusion Dialog in ASP.NET Core applications using the <ejs-dialog> Tag Helper API. It covers setup, modality, positioning, animations, templates, events, accessibility, and styling.
In your Razor view:
@using Syncfusion.EJ2
<ejs-dialog id="dialog" header="Welcome" isModal="true" width="500px">
<e-content-template>
<p>This is a basic dialog with default settings.</p>
</e-content-template>
</ejs-dialog>
<script>
window.onload = function () {
document.getElementById('openBtn').onclick = function () {
document.getElementById('dialog').ej2_instances[0].show();
};
};
</script>
Ensure you include the script manager and styles in your layout (_Layout.cshtml):
<!-- In <head> -->
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/fluent.css" />
<!-- At end of <body> -->
<script src="https://cdn.syncfusion.com/ej2/{{ site.ej2version }}/dist/ej2.min.js"></script>
<ejs-scripts></ejs-scripts>
<ejs-dialog id="confirmDialog" header="Confirm Action" isModal="true" width="400px">
<e-dialog-buttons>
<e-dialog-dialogbutton content="Yes" isPrimary="true" click="confirmAction"></e-dialog-dialogbutton>
<e-dialog-dialogbutton content="No" click="closeDialog"></e-dialog-dialogbutton>
</e-dialog-buttons>
<e-content-template>
<p>Are you sure you want to proceed?</p>
</e-content-template>
</ejs-dialog>
<ejs-dialog id="draggableDialog"
header="Drag Me"
allowDragging="true"
width="500px"
showCloseIcon="true">
<e-content-template>
<p>Grab the header to drag this dialog.</p>
</e-content-template>
</ejs-dialog>
<ejs-dialog id="centeredDialog"
header="Centered Position"
width="500px">
<e-dialog-position x="center" y="center"></e-dialog-position>
<e-content-template>
<p>This dialog is centered on the page.</p>
</e-content-template>
</ejs-dialog>
| Tag Helper Attribute | Type | Purpose | Example |
|---|---|---|---|
header | string | Dialog title bar text | header="Confirm Delete" |
isModal | bool | Shows overlay behind dialog | isModal="true" |
width | string | Dialog width (px, %) | width="500px" |
height | string | Dialog height (px, %) | height="300px" |
minHeight | string | Minimum dialog height | minHeight="150px" |
allowDragging | bool | Enable drag to reposition | allowDragging="true" |
enableResize | bool | Enable end-user resizing | enableResize="true" |
showCloseIcon | bool | Display close (X) button | showCloseIcon="true" |
closeOnEscape | bool | Close on Escape key | closeOnEscape="true" |
visible | bool | Initial visibility | visible="false" |
target | string | Target container selector | target="#container" |
cssClass | string | Custom CSS class(es) | cssClass="my-dialog" |
enableRtl | bool | Right-to-left rendering | enableRtl="true" |
enablePersistence | bool | Persist state on reload | enablePersistence="true" |
zIndex | double | Z-order stacking level | zIndex="2000" |
<e-dialog-position> | DialogPositionData | X/Y positioning | x="center" y="center" |
<e-dialog-animationsettings> | DialogAnimationSettings | Open/close animation | effect="Zoom" duration="400" |
footerTemplate | string | Custom footer HTML string | footerTemplate="<span>...</span>" |
Removed invalid APIs:
is-hidden(usevisible="false"),position-x/position-yflat attributes (use<e-dialog-position>),allow-resizing(useenable-resize),max-height,max-width,min-width(not supported).
Read getting-started.md for full installation steps, NuGet package setup, and configuration details.
Predefined dialogs are opened imperatively using the DialogUtility JavaScript utility class. They provide ready-to-use alert, confirm, and prompt dialogs without component setup. Use predefined dialogs for quick notifications and user confirmations.
Predefined dialogs are not Tag Helper components. They are invoked via JavaScript:
ej.popups.DialogUtility.alert({ ... });
ej.popups.DialogUtility.confirm({ ... });
<button class="e-btn e-danger" onclick="showAlert()">Alert</button>
<script>
function showAlert() {
ej.popups.DialogUtility.alert({
title: 'Low Battery',
width: '250px',
content: '10% of battery remaining'
});
}
</script>
📄 Read: references/predefineddialog-getting-started.md
📄 Read: references/predefineddialog-position.md
position property with X/Y values📄 Read: references/predefineddialog-animation.md
animationSettings with effect, duration, delay📄 Read: references/predefineddialog-draggable.md
isDraggable boolean property📄 Read: references/predefineddialog-dimension.md
width and height propertiescssClass for size constraints (min-width, max-width)📄 Read: references/predefineddialog-customization.md
okButton / cancelButton customizationshowCloseIcon and closeOnEscape📄 Read: references/predefineddialog-api.md
DialogUtility.alert() / confirm() option propertiesAlert Dialog:
ej.popups.DialogUtility.alert({
title: 'Info',
content: 'Operation complete.',
width: '250px'
});
Confirm Dialog:
var dialogObj = ej.popups.DialogUtility.confirm({
title: 'Delete?',
content: 'Are you sure?',
width: '300px',
okButton: { text: 'Yes', click: function() { /* delete */ dialogObj.hide(); } },
cancelButton: { text: 'No', click: function() { dialogObj.hide(); } }
});
Prompt Dialog:
var dialogObj = ej.popups.DialogUtility.confirm({
title: 'Enter Name',
content: '<p>Your name:</p><input id="nameInput" class="e-input" placeholder="Type here..." />',
width: '300px',
okButton: { text: 'Submit', click: function() { var val = document.getElementById('nameInput').value; dialogObj.hide(); } },
cancelButton: { click: function() { dialogObj.hide(); } }
});
A tooltip component that displays helpful information or hints when users hover over, click, or focus on an element. The <ejs-tooltip> Tag Helper provides flexible positioning, animations, multiple trigger modes, and accessibility features.
Package: Syncfusion.EJ2.AspNet.Core
Tag Helper: <ejs-tooltip>
<ejs-tooltip id="tooltip" target="#target" position="TopCenter" content="Tooltip Content">
<e-content-template>
<button class="e-btn" id="target">Show Tooltip</button>
</e-content-template>
</ejs-tooltip>
📄 Read: references/tooltip-getting-started.md
📄 Read: references/tooltip-content.md
<e-content-template>beforeRender event📄 Read: references/tooltip-positioning.md
refresh() methodoffsetX, offsetY)windowCollision)📄 Read: references/tooltip-open-mode.md
Auto, Hover, Click, Focus, Custom modes via opensOnopensOn="Hover Click")isSticky) with close buttonopenDelay, closeDelay)📄 Read: references/tooltip-animation.md
<e-tooltip-animationsettings> with open/close effects📄 Read: references/tooltip-customization.md
cssClass for custom stylingwidth, height)enableRtl)mouseTrail)📄 Read: references/tooltip-accessibility.md
📄 Read: references/tooltip-api.md
open(), close(), refresh(), destroy(), dataBind()BeforeRender, AfterOpen, AfterClose, Created, DestroyedBasic Tooltip on Button:
<ejs-tooltip id="tooltip" target="#target" position="TopCenter" content="Submit the form">
<e-content-template>
<button class="e-btn" id="target">Submit</button>
</e-content-template>
</ejs-tooltip>
Multi-Target Tooltip:
<ejs-tooltip id="tooltip" target=".info-icon" position="TopCenter">
<e-content-template>
<button class="e-btn info-icon" title="Information">Info 1</button>
<button class="e-btn info-icon" title="Details">Info 2</button>
<button class="e-btn info-icon" title="Help">Info 3</button>
</e-content-template>
</ejs-tooltip>
Click-Triggered Sticky Tooltip:
<ejs-tooltip target="#target" content="Click the × to close me"
opensOn="Click"
isSticky="true"
position="BottomCenter">
<e-content-template>
<button id="target" class="e-btn">Click Me</button>
</e-content-template>
</ejs-tooltip>
Programmatic Open/Close:
<ejs-tooltip id="tooltip" target="#target" content="Tooltip opened programmatically" opensOn="Custom">
<e-content-template>
<button id="target" class="e-btn" onclick="toggleTooltip()">Toggle Tooltip</button>
</e-content-template>
</ejs-tooltip>
<script>
function toggleTooltip() {
var tooltipObj = document.getElementById('tooltip').ej2_instances[0];
var btn = document.querySelector('.e-btn');
if (btn.getAttribute('data-tooltip-open') === 'true') {
tooltipObj.close();
btn.setAttribute('data-tooltip-open', 'false');
} else {
tooltipObj.open(btn);
btn.setAttribute('data-tooltip-open', 'true');
}
}
</script>
| Tag Helper Attr | Type | Default | Purpose |
|---|---|---|---|
content | string | — | Tooltip text or HTML |
target | string | — | CSS selector for multi-target mode |
position | Position | 'TopCenter' | 12 placement values |
opensOn | string | 'Auto' | Hover / Click / Focus / Custom |
isSticky | bool | false | Keep visible until user closes |
mouseTrail | bool | false | Follow mouse cursor |
showTipPointer | bool | true | Show/hide arrow tip |
tipPointerPosition | TipPointerPosition | 'Auto' | Auto / Start / Middle / End |
openDelay | number | 0 | ms delay before opening |
closeDelay | number | 0 | ms delay before closing |
offsetX / offsetY | number | 0 | Distance from target (px) |
width / height | string | number | 'auto' | Tooltip dimensions |
cssClass | string | null | Custom CSS class |
enableRtl | bool | false | Right-to-left rendering |
enableHtmlSanitizer | bool | true | Sanitize HTML content |
windowCollision | bool | false | Collision vs viewport |
references/dialog-accessibility-and-localization.md (opens in a new tab)references/dialog-animations-and-transitions.md (opens in a new tab)references/dialog-api.md (opens in a new tab)references/dialog-basic-features.md (opens in a new tab)references/dialog-events-and-interactions.md (opens in a new tab)references/dialog-getting-started.md (opens in a new tab)references/dialog-positioning-and-sizing.md (opens in a new tab)references/dialog-styling-and-themes.md (opens in a new tab)references/dialog-templates.md (opens in a new tab)references/predefineddialog-animation.md (opens in a new tab)references/predefineddialog-api.md (opens in a new tab)references/predefineddialog-customization.md (opens in a new tab)references/predefineddialog-dimension.md (opens in a new tab)references/predefineddialog-draggable.md (opens in a new tab)references/predefineddialog-getting-started.md (opens in a new tab)references/predefineddialog-position.md (opens in a new tab)references/tooltip-accessibility.md (opens in a new tab)references/tooltip-animation.md (opens in a new tab)references/tooltip-api.md (opens in a new tab)references/tooltip-content.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-aspnet-core66 skills in this plugin
/syncfusion-aspnetcore-3d-chartGuide for implementing Syncfusion 3D Chart in ASP.NET Core. Always use this skill when user needs 3D chart functionality, data visualization, series configuration, axes setup, or interactive chart features like tooltips and selection. Covers setup, data binding, chart types, styling, and user interactions./syncfusion-aspnetcore-accordionImplement Syncfusion Accordion component for organizing expandable navigation and content sections with single or multiple pane expansion support./syncfusion-aspnetcore-Other plugins' skills for the same job