ComPDFKit Web SDK
    Preparing search index...

    Function setCustomPanel

    • Adds a custom tab to the left panel (legacy API). Converted to addPanel on the left (tab.title → title, tab.img → icon, plus the panel's dataElement / render), with a warning that it is a legacy API.

      Parameters

      • options: {
            panel: { dataElement: string; render: FunctionRef };
            tab: { dataElement: string; img?: string; title?: string };
        }

        { tab, panel }.

        • panel: { dataElement: string; render: FunctionRef }

          The panel.

          • dataElement: string

            The panel's dataElement.

          • render: FunctionRef

            A built-in panel name, or a function returning the panel's element.

        • tab: { dataElement: string; img?: string; title?: string }

          The tab.

          • dataElement: string

            The tab's dataElement.

          • Optionalimg?: string

            The tab's icon.

          • Optionaltitle?: string

            The tab's tooltip text.

      Returns void