Last active
July 21, 2021 16:33
-
-
Save keithstric/d3362de0bd0b8bd3da0217dbfd713317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component, TemplateRef} from '@angular/core'; | |
import {FormGroup} from '@angular/forms'; | |
import {ModalOptions} from 'ngx-bootstrap/modal'; | |
export interface ConfirmModalConfig { | |
/** | |
* The text which will show in the modal-header | |
*/ | |
modalHeaderText?: string; | |
/** | |
* The title text of the modal | |
*/ | |
modalTitle?: string; | |
/** | |
* The title html of the modal (inside the h2 block) | |
*/ | |
modalTitleHtml?: string; | |
/** | |
* The Subheading text for the modal | |
*/ | |
modalSubTitle?: string; | |
/** | |
* the Subheading html for the modal (inside the h6 block) | |
*/ | |
modalSubTitleHtml?: string; | |
/** | |
* HTML content to display in the body | |
*/ | |
modalHtmlContent?: string; | |
/** | |
* Text content to display in the body | |
*/ | |
modalTextContent?: string; | |
/** | |
* An ng-template to display in the body | |
*/ | |
modalTemplateContent?: TemplateRef<any>; | |
/** | |
* A component to display in the body | |
*/ | |
modalComponentContent?: Component; | |
/** | |
* True to hide the cancel button | |
*/ | |
hideCancelButton?: boolean; | |
/** | |
* True to hide the confirm button | |
*/ | |
hideConfirmButton?: boolean; | |
/** | |
* The label for the cancel button | |
*/ | |
cancelButtonLabel?: string; | |
/** | |
* The label for the confirm button | |
*/ | |
confirmButtonLabel?: string; | |
/** | |
* any data item that may need to be returned | |
*/ | |
data?: any; | |
/** | |
* Provide a FormGroup to provide ability to disable the confirm button | |
*/ | |
formGroup?: FormGroup; | |
/** | |
* The ngx-bootstrap ModalOptions | |
*/ | |
ngModalOptions?: ModalOptions; | |
/** | |
* true to close after confirm handler has been run. Default true | |
*/ | |
closeOnConfirm?: boolean; | |
/** | |
* true to close after cancel handler has been run. Default true | |
*/ | |
closeOnCancel?: boolean; | |
/** | |
* Handler function to run when the cancel button is clicked | |
*/ | |
cancelHandler?(): void; | |
/** | |
* Handler function to run when the confirm button is clicked | |
*/ | |
confirmHandler?(): void; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment