Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/customize/lib/preview/listenPanelExpanded"

Index

Functions

listenPanelExpanded

  • listenPanelExpanded(id: string, onChange: (state: boolean) => void, includeSections?: boolean): boolean
  • In your preview website you can listen if a panel or section got opened or is closed. For example you can show a container or hide if the given container should be customized.

    This event handler is dirty, that means, onChange is also fired for the first state!

    Parameters

    • id: string
    • onChange: (state: boolean) => void
        • (state: boolean): void
        • Parameters

          • state: boolean

          Returns void

    • Default value includeSections: boolean = false

    Returns boolean

Generated using TypeDoc