Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResultViewer

ResultViewer

Maintains an instance of CodeMirror for viewing a GraphQL response.

Props:

  • value: The text of the editor.

Hierarchy

  • any
    • ResultViewer

Implements

Index

Properties

_node

_node: HTMLElement | null = null

viewer

viewer: (CM.Editor & { options: any }) | null = null

Methods

componentDidMount

  • componentDidMount(): void
  • Returns void

componentDidUpdate

  • componentDidUpdate(): void
  • 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

shouldComponentUpdate

  • shouldComponentUpdate(nextProps: ResultViewerProps): boolean
  • Parameters

    • nextProps: ResultViewerProps

    Returns boolean

Generated using TypeDoc