Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/customize/lib/contexts/customControlContextFactory"

Index

Type aliases

CustomControlContextProps

CustomControlContextProps<ValueType, ControlParameters>: { backboneView?: any; initializeNotifications?: (element: HTMLElement) => void; params?: { active: boolean; className?: string; description: string; instanceNumber: number; label: string; priority: number; section: string; settings: { default?: any }; skipFieldSet?: boolean; type: string } & ControlParameters; setValue?: (value: ValueType) => void; value?: ValueType }

Type parameters

  • ValueType

  • ControlParameters

Type declaration

  • Optional backboneView?: any
  • Optional initializeNotifications?: (element: HTMLElement) => void
      • (element: HTMLElement): void
      • Parameters

        • element: HTMLElement

        Returns void

  • Optional params?: { active: boolean; className?: string; description: string; instanceNumber: number; label: string; priority: number; section: string; settings: { default?: any }; skipFieldSet?: boolean; type: string } & ControlParameters
  • Optional setValue?: (value: ValueType) => void
      • (value: ValueType): void
      • Parameters

        • value: ValueType

        Returns void

  • Optional value?: ValueType

Functions

useCustomControl

  • Type parameters

    • ValueType

    • ControlParameters

    Returns CustomControlContextProps<ValueType, ControlParameters>

Generated using TypeDoc