Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HeaderEditor

HeaderEditor

An instance of CodeMirror for editing headers to be passed with the GraphQL request.

Props:

  • value: The text of the editor.
  • onEdit: A function called when the editor changes, given the edited text.
  • readOnly: Turns the editor to read-only mode.

Hierarchy

  • any
    • HeaderEditor

Index

Constructors

constructor

  • Parameters

    • props: HeaderEditorProps

    Returns HeaderEditor

Properties

CodeMirror

CodeMirror: any

cachedValue

cachedValue: string

editor

editor: (CM.Editor & { options: any; showHint: any }) | null = null

ignoreChangeEvent

ignoreChangeEvent: boolean = false

Methods

componentDidMount

  • componentDidMount(): void
  • Returns void

componentDidUpdate

  • componentDidUpdate(prevProps: HeaderEditorProps): void
  • Parameters

    • prevProps: HeaderEditorProps

    Returns void

componentWillUnmount

  • componentWillUnmount(): void
  • Returns void

getClientHeight

  • getClientHeight(): number
  • Public API for retrieving the DOM client height for this component.

    Returns number

getCodeMirror

  • Public API for retrieving the CodeMirror instance from this React component.

    Returns Editor

render

  • render(): Element
  • Returns Element

Generated using TypeDoc