modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface DataValidationData

    A <dataValidation> rule applied to the cells in sqref.

    interface DataValidationData {
        allowBlank: boolean | null;
        errorMessage: string | null;
        errorStyle?: "stop" | "warning" | "information" | null;
        errorTitle: string | null;
        formula1: string | null;
        formula2: string | null;
        imeMode?: string | null;
        operator: string | null;
        prompt?: string | null;
        promptTitle?: string | null;
        showDropDown?: boolean | null;
        showErrorMessage: boolean | null;
        showInputMessage?: boolean | null;
        sqref: string;
        validationType: string | null;
    }
    Index
    allowBlank: boolean | null
    errorMessage: string | null
    errorStyle?: "stop" | "warning" | "information" | null

    The errorStyle attribute: what invalid input does. 'stop' rejects it; 'warning' and 'information' let the user keep it. Absent means 'stop'.

    errorTitle: string | null
    formula1: string | null
    formula2: string | null
    imeMode?: string | null

    The imeMode attribute: the input method editor mode while a cell is selected, such as 'off', 'on' or 'hiragana'. Absent means 'noControl'.

    operator: string | null
    prompt?: string | null
    promptTitle?: string | null
    showDropDown?: boolean | null

    The showDropDown attribute of a 'list' validation. Despite its name, true HIDES the in-cell drop-down arrow; absent or false shows it.

    showErrorMessage: boolean | null
    showInputMessage?: boolean | null
    sqref: string
    validationType: string | null

    The type attribute, such as 'list' or 'whole'.