src/modal/alert-modal.interface.ts
Properties |
| buttons |
buttons:
|
Type : Array<ModalButton>
|
|
Defined in src/modal/alert-modal.interface.ts:42
|
|
Array of |
| content |
content:
|
Type : string
|
|
Defined in src/modal/alert-modal.interface.ts:38
|
|
Content for the modal body, could include HTML tags |
| label |
label:
|
Type : string
|
|
Defined in src/modal/alert-modal.interface.ts:22
|
|
Additional label shown over the modal |
| modalContent |
modalContent:
|
Type : string
|
|
Defined in src/modal/alert-modal.interface.ts:34
|
|
Use of |
| modalLabel |
modalLabel:
|
Type : string
|
|
Defined in src/modal/alert-modal.interface.ts:18
|
|
Use of |
| modalTitle |
modalTitle:
|
Type : string
|
|
Defined in src/modal/alert-modal.interface.ts:26
|
|
Use of |
| modalType |
modalType:
|
Type : string
|
|
Defined in src/modal/alert-modal.interface.ts:10
|
|
Use of |
| title |
title:
|
Type : string
|
|
Defined in src/modal/alert-modal.interface.ts:30
|
|
Primary title for the modal |
| type |
type:
|
Type : AlertModalType
|
|
Defined in src/modal/alert-modal.interface.ts:14
|
|
type of the modal |
export enum AlertModalType {
default = "default",
danger = "danger"
}
export interface AlertModalData {
/**
* Use of `modalType` is deprecated, use `type` instead
*/
modalType?: string;
/**
* type of the modal
*/
type?: AlertModalType;
/**
* Use of `modalLabel` is deprecated, use `label` instead
*/
modalLabel?: string;
/**
* Additional label shown over the modal
*/
label?: string;
/**
* Use of `modalTitle` is deprecated, use `title` instead
*/
modalTitle?: string;
/**
* Primary title for the modal
*/
title?: string;
/**
* Use of `modalContent` is deprecated, use `content` instead
*/
modalContent?: string;
/**
* Content for the modal body, could include HTML tags
*/
content?: string;
/**
* Array of `ModalButton`s
*/
buttons?: Array<ModalButton>;
}
export enum ModalButtonType {
primary = "primary",
secondary = "secondary",
tertiary = "tertiary",
ghost = "ghost",
danger = "danger",
danger_primary = "danger--primary"
}
export interface ModalButton {
/**
* Display value of the button
*/
text: string;
/**
* Optional unique ID for the button
*/
id?: string;
/**
* Button type
*/
type?: ModalButtonType;
/**
* Callback for the button `click` event
*/
click?: Function;
}