Interface EditorApi

This API is available on property editors.

interface EditorApi {
    onPropertyChange(handler: ((category: string, property: string, currentValue: any, previousValue: any) => void)): (() => void);
}

Methods

  • Registers a function to be invoked whenever one of the editor's properties changes.

    Parameters

    • handler: ((category: string, property: string, currentValue: any, previousValue: any) => void)

      The function to be invoked.

        • (category, property, currentValue, previousValue): void
        • Parameters

          • category: string
          • property: string
          • currentValue: any
          • previousValue: any

          Returns void

    Returns (() => void)

    A function that stops the handler from being invoked.

      • (): void
      • Returns void