SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function renderProtection

    • Renders a sheet's or a workbook's protection — what getProtection() answers with.

      Parameters

      • protection: ISheetProtection | IWorkbookProtection

      Returns string

      The object knows its options and not its owner, so this report carries no name and no cells: the editable regions are the sheet report's Protection section, and sheet.getRegions("unlock") on their own. An unprotected object still renders — the caller asked — as the one line that says so, plus the options it keeps for its next lock.