@n8d/htwoo-core
Version:
hTWOo is a Fluent Design Framework purely in HTML and CSS
36 lines • 980 B
TypeScript
/**
* Dialog type options
*/
export declare enum DialogType {
DIALOG = "dialog",
MODAL = "modal"
}
/**
* Dialog options interface
*/
export interface DialogOptions {
closer: string | null;
backdropCloser: boolean;
escCloser: boolean;
}
/**
* HOODialog Class - Handles accessible dialog functionality
*/
export declare class HOODialog {
#private;
/** Default options for modal dialog */
static options: DialogOptions;
/**
* Enum of available dialog types
*/
static dialogType: typeof DialogType;
/**
* Constructor for HOODialog
* @param launcher - CSS selector for the element that opens the dialog
* @param dialog - CSS selector for the dialog element
* @param dialogType - Type of dialog (DIALOG or MODAL)
* @param options - Configuration options
*/
constructor(launcher: string, dialog: string, dialogType?: DialogType, options?: DialogOptions);
}
//# sourceMappingURL=dialog.d.ts.map