ComPDFKit Web SDK
    Preparing search index...

    Function setPanelWidth

    • Sets the width of a panel and triggers UI.Events.PANEL_RESIZED; the document area adjusts to the new width. The width is clamped to [264, window width] with a warning. The 2.x name leftPanel is accepted for the left panel. Panels are 260 pixels wide by default and have no resize handle.

      Parameters

      • dataElement: string

        The dataElement of the panel.

      • width: number

        The width in pixels.

      Returns void

      instance.UI.setPanelWidth(instance.UI.Panels.TABS, 320);