Skip to content
angulux
@anguless/angulux/confirmdialog

confirmdialog

1 declarations1 demos
import
import { ConfirmDialogModule } from '@anguless/angulux/confirmdialog';

Basic

ConfirmDialog renders what ConfirmationService is asked to confirm; the service is provided by the component that owns the dialog.

<agl-confirmDialog /><agl-button label="Delete" severity="danger" (onClick)="confirm()" /><span>{{ result() }}</span>

API

Generated from the committed corpus, which check:corpus holds to the built library.

ConfirmDialog

componentagl-confirmDialog, agl-confirmdialog, agl-confirm-dialog

ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.

InputTypeDefaultDescription
headerstring | undefinednot documentedTitle text of the dialog.
iconstring | undefinednot documentedIcon to display next to message.
messagestring | undefinednot documentedMessage of the confirmation.
style{ [klass: string]: any } | null | undefinednot documentedInline style of the element.
styleClassstring | undefinednot documentedClass of the element.
maskStyleClassstring | undefinednot documentedSpecify the CSS class(es) for styling the mask element
acceptIconstring | undefinednot documentedIcon of the accept button.
acceptLabelstring | undefinednot documentedLabel of the accept button.
closeAriaLabelstring | undefinednot documentedDefines a string that labels the close button for accessibility.
acceptAriaLabelstring | undefinednot documentedDefines a string that labels the accept button for accessibility.
acceptVisiblebooleannot documentedVisibility of the accept button.
rejectIconstring | undefinednot documentedIcon of the reject button.
rejectLabelstring | undefinednot documentedLabel of the reject button.
rejectAriaLabelstring | undefinednot documentedDefines a string that labels the reject button for accessibility.
rejectVisiblebooleannot documentedVisibility of the reject button.
acceptButtonStyleClassstring | undefinednot documentedStyle class of the accept button.
rejectButtonStyleClassstring | undefinednot documentedStyle class of the reject button.
closeOnEscapebooleannot documentedSpecifies if pressing escape key should hide the dialog.
dismissableMaskboolean | undefinednot documentedSpecifies if clicking the modal background should hide the dialog.
blockScrollbooleannot documentedDetermines whether scrolling behavior should be blocked within the component.
rtlbooleannot documentedWhen enabled dialog is displayed in RTL direction.
closablebooleannot documentedAdds a close icon to the header to hide the dialog.
appendToHTMLElement | ElementRef | TemplateRef<any> | 'self' | 'body' | null | undefined | any 'body' Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
keystring | undefinednot documentedOptional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.
autoZIndexbooleannot documentedWhether to automatically manage layering.
baseZIndexnumbernot documentedBase zIndex value to use in layering.
transitionOptionsstringnot documentedTransition options of the animation.
focusTrapbooleannot documentedWhen enabled, can only focus on elements inside the confirm dialog.
defaultFocus'accept' | 'reject' | 'close' | 'none'not documentedElement to receive the focus when the dialog gets visible.
breakpointsanynot documentedObject literal to define widths per screen size.
modalbooleannot documentedDefines if background should be blocked when dialog is displayed.
visibleanynot documentedCurrent visible state as a boolean.
position'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright'not documentedAllows getting the position of the component.
draggablebooleannot documentedEnables dragging to change the position using header.
OutputTypeDescription
onHideEventEmitter<ConfirmEventType>Callback to invoke when dialog is hidden.
Template slotDescription
<ng-template #header>Custom header template.
<ng-template #footer>Custom footer template.
<ng-template #rejecticon>Custom reject icon template.
<ng-template #accepticon>Custom accept icon template.
<ng-template #message>Custom message template.
<ng-template #icon>Custom icon template.
<ng-template #headless>Custom headless template.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.