Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PolymerApolloElement<TData>

fires

'apollo-element-disconnected' when the element disconnects from the dom

fires

'apollo-element-connected' when the element connects to the dom

fires

'data-changed'

fires

'error-changed'

fires

'errors-changed'

fires

'loading-changed'

Type parameters

  • TData

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private __document

__document: DocumentNode = null

Private __mo

client

Optional context

context: Record<string, unknown>

data

data: TData = null

error

error: Error | ApolloError = null

errors

errors: readonly GraphQLError[] = null

loading

loading: boolean = null

Accessors

document

Methods

Optional adoptedCallback

  • adoptedCallback(): void
  • Called when the element is adopted to a document.

    Returns void

Optional attributeChangedCallback

  • attributeChangedCallback(name: string, oldValue: string, newValue: string): void
  • Called when one of the element's observedAttributes changes.

    Parameters

    • name: string

      name of the observed attribute

    • oldValue: string

      previous value of the attribute. null if it was nonexistent

    • newValue: string

      current value of the attribute. null if removed.

    Returns void

connectedCallback

  • connectedCallback(): void

disconnectedCallback

  • disconnectedCallback(): void