Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Confirm

Confirm is a standardized confirmation dialog for a short binary decision before an important action. Use it through ConfirmManager.open({ title, description }) when users must confirm or cancel a destructive, irreversible, or high-impact operation.

Use it for:
  • Delete, unpublish, archive, reset, discard changes, leave with unsaved changes, or bulk actions.
  • Short confirm/cancel decisions with one title and one description.
  • Handling the result through confirmed, canceled, and closed events on ConfirmRef.
  • Showing confirmations from pages, tables, action bars, or even inside an existing dialog flow.

Do not use Confirm for long forms, custom modal layouts, wizards, informational dialogs, settings panels, or choices with more than two outcomes. Use Dialog for custom modal content.

ConfirmOptions (Input)

PropTypeDefault
title*
The title of the confirmation dialog
string
description*
The descriptive text shown in the dialog
string

ConfirmManager (Methods)

MethodReturn Type
open(options: ConfirmOptions)
Opens the confirmation dialog with the specified options
ConfirmRef

ConfirmRef (Events)

EventType
confirmed
Emitted when the user confirms the action
EventEmitter<void>
canceled
Emitted when the user cancels the action
EventEmitter<void>
closed
Emitted when the dialog is closed
EventEmitter<void>