angular-confirmation-popover
Version:
An angular 15.0+ bootstrap confirmation popover
78 lines (77 loc) • 2.12 kB
TypeScript
import * as i0 from "@angular/core";
export interface ConfirmationPopoverOptionsInterface {
/**
* The popover title
*/
popoverTitle?: string;
/**
* The popover message
*/
popoverMessage?: string;
/**
* The popover confirmation button text
*/
confirmText?: string;
/**
* The popover cancel button text
*/
cancelText?: string;
/**
* The popover confirm button type e.g. `success`, `danger` etc
*/
confirmButtonType?: string;
/**
* The popover cancel button type e.g. `success`, `danger` etc
*/
cancelButtonType?: string;
/**
* The popover placement. Can be `top`, `bottom`, `left`, `right`
*/
placement?: string;
/**
* Which button to cancel. Can be either `confirm` or `cancel`
*/
focusButton?: string;
/**
* Whether to hide the confirmation button
*/
hideConfirmButton?: boolean;
/**
* Whether to hide the cancel button
*/
hideCancelButton?: boolean;
/**
* A custom CSS class to be added to the popover
*/
popoverClass?: string;
/**
* Whether to append the popover to the document body
*/
appendToBody?: boolean;
/**
* Swap the order of the confirm and cancel buttons
*/
reverseButtonOrder?: boolean;
/**
* Whether or not the popover should stay open when clicking outside it
*/
closeOnOutsideClick?: boolean;
}
export declare class ConfirmationPopoverOptions implements ConfirmationPopoverOptionsInterface {
popoverTitle: string;
popoverMessage: string;
confirmText: string;
cancelText: string;
confirmButtonType: string;
cancelButtonType: string;
placement: string;
focusButton: string;
hideConfirmButton: boolean;
hideCancelButton: boolean;
popoverClass: string;
appendToBody: boolean;
reverseButtonOrder: boolean;
closeOnOutsideClick: boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationPopoverOptions, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationPopoverOptions>;
}