src/ui/dialogs/confirm-prompt/confirm-prompt.component.ts
DialogContentBase
| changeDetection | ChangeDetectionStrategy.Eager |
| selector | scl-confirm-prompt |
| styleUrls | ./confirm-prompt.component.css |
| templateUrl | ./confirm-prompt.component.html |
Methods |
Inputs |
constructor(dialog: DialogRef)
|
||||||
|
Parameters :
|
| cancelText |
Type : string
|
| promptText |
Type : string
|
| yesText |
Type : string
|
| cancel |
cancel()
|
|
Closes the dialog with the cancel text
Returns :
void
|
| yes |
yes()
|
|
Closes the dialog with the yes text
Returns :
void
|
<!--
**************************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**************************************************************************
--------------------------------------------------------------------------
File : confirm-prompt.component.html
Purpose : Template for confirm prompt.
Author(s) : Oana Sucigan
Created : Sep 10, 2021
--------------------------------------------------------------------------
-->
<div class="container-fluid p-0">
<div class="row m-0 p-4">
<div class="col-12 p-0">
<span class="d-block">{{promptText || 'Are you sure that you want to delete this record?'}}</span>
</div>
</div>
</div>
<kendo-dialog-actions class="d-flex justify-content-end gap-2">
<button kendoButton class="px-4" (click)="yes()"> {{yesText || 'Yes'}}</button>
<button kendoButton class="px-4" (click)="cancel()" themeColor="primary"> {{cancelText || 'Cancel'}}</button>
</kendo-dialog-actions>
./confirm-prompt.component.css
/**********************************************************************
* Copyright © 2006-2026 by Consultingwerk Ltd. ("CW") - *
* www.consultingwerk.com and other contributors as listed *
* below. All Rights Reserved. *
* *
* Software is distributed on an "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, either express or implied. *
* *
* Contributors: *
* *
**********************************************************************/
/*------------------------------------------------------------------------
File : confirm-prompt.component.css
Purpose : Styles for confirm prompt.
Author(s) : Oana Sucigan
Created : Sep 10, 2021
----------------------------------------------------------------------*/
.k-dialog-close {
display: none;
}
.row {
padding: var(--kendo-spacing-5, 1.25rem);
}
/* Confirm prompt content styling */
.container-fluid {
padding: 0;
}
.row span {
line-height: var(--kendo-line-height-md, 1.5);
color: var(--kendo-color-on-app-surface, #3d3d3d);
font-size: var(--kendo-font-size-md, 0.875rem);
}
/* Button spacing for confirm prompt */
kendo-dialog-actions {
gap: var(--kendo-spacing-2, 0.5rem);
padding: var(--kendo-spacing-3, 0.75rem) var(--kendo-spacing-4, 1rem);
}