ngx-modialog-10
Version:
Modal / Dialog for Angular
56 lines (55 loc) • 1.63 kB
TypeScript
import { DROP_IN_TYPE, FluentAssignMethod } from 'ngx-modialog-10';
import { Modal } from '../modal';
import { DialogPreset, DialogPresetBuilder } from './dialog-preset';
/**
* Data definition
*/
export declare class DropInPreset extends DialogPreset {
/**
* the message to display on the modal.
*/
message: string;
/**
* OK button caption.
* Default: OK
* Set to false ('', undefined, null, false) to remove button.
*/
okBtn: string;
/**
* Cancel button caption.
* Default: Cancel
* Set to false ('', undefined, null, false) to remove button.
*/
cancelBtn: string;
/**
* A placeholder for the input element.
* Valid only for prompt modal.
*/
placeholder: string;
dropInType: DROP_IN_TYPE;
get showInput(): boolean;
}
/**
* A Preset representing all 3 drop ins (alert, prompt, confirm)
*/
export declare class DropInPresetBuilder extends DialogPresetBuilder<DropInPreset> {
/**
* the message to display on the modal.
*/
message: FluentAssignMethod<string, this>;
/**
* The default Ok button caption.
*/
okBtn: FluentAssignMethod<string, this>;
/**
* The default Cancel button caption.
*/
cancelBtn: FluentAssignMethod<string, this>;
/**
* A placeholder for the input element.
* Valid only for prompt modal.
*/
placeholder: FluentAssignMethod<string, this>;
constructor(modal: Modal, dropInType: DROP_IN_TYPE, defaultValues?: DropInPreset);
$$beforeOpen(config: DropInPreset): void;
}