Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

previewFactory

  • previewFactory(__namedParameters: { immediateApply: {}; onChange: [{}, (section: keyof T, setting: string, newValue: any) => void]; onPanelChange: [string, (state: boolean) => void, boolean] }): void
  • A factory functionality which provides different implementations especially for the "preview" use case.

    Note: If you are using a store (e. g. MobX), make sure to use setTimeout(callback, 0). In some cases, if you do not use it, the page will result in a endless-loop.

    Parameters

    • __namedParameters: { immediateApply: {}; onChange: [{}, (section: keyof T, setting: string, newValue: any) => void]; onPanelChange: [string, (state: boolean) => void, boolean] }
      • immediateApply: {}
        • [section: string]: {}
          • [setting: string]: string
      • onChange: [{}, (section: keyof T, setting: string, newValue: any) => void]
      • onPanelChange: [string, (state: boolean) => void, boolean]

    Returns void

Generated using TypeDoc