Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

listenChanges

  • listenChanges<T>(settings: T, onChange: (section: keyof T, setting: string, newValue: any) => void): void
  • Listen to value changes and execute a callback.

    Type parameters

    • T: {}

    Parameters

    • settings: T
    • onChange: (section: keyof T, setting: string, newValue: any) => void
        • (section: keyof T, setting: string, newValue: any): void
        • Parameters

          • section: keyof T
          • setting: string
          • newValue: any

          Returns void

    Returns void

Generated using TypeDoc