blessed-components - v1.20.0
    Preparing search index...

    Interface ConfirmDialogStateOptions

    Stateful data shared by ConfirmDialog pure and Blessed APIs.

    interface ConfirmDialogStateOptions {
        onCancel?: () => void;
        onConfirm?: () => void;
        onResult?: (result: ConfirmDialogResult) => void;
        defaultOpen?: boolean;
        onOpenChange?: (open: boolean) => void;
        open?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    onCancel?: () => void

    Called when the cancel action is chosen.

    onConfirm?: () => void

    Called when the confirm action is chosen.

    onResult?: (result: ConfirmDialogResult) => void

    Called after either action is chosen.

    defaultOpen?: boolean

    Initial state for uncontrolled usage.

    false

    onOpenChange?: (open: boolean) => void

    Called when Dialog requests an open-state change.

    open?: boolean

    Controlled open state.