Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AsyncDirective
    • LazyloadDirective

Index

Constructors

  • Parameters

    • _partInfo: PartInfo

    Returns LazyloadDirective

Properties

isConnected: boolean

The connection state for this Directive.

Accessors

  • get _$isConnected(): boolean
  • Returns boolean

Methods

  • _$initialize(part: Part, parent: Disconnectable, attributeIndex: undefined | number): void
  • Initialize the part with internal fields

    Parameters

    Returns void

  • disconnected(): void
  • User callbacks for implementing logic to release any resources/subscriptions that may have been retained by this directive. Since directives may also be re-connected, reconnected should also be implemented to restore the working state of the directive prior to the next render.

    Returns void

  • reconnected(): void
  • Returns void

  • render(widgetImport: Promise<unknown>, value: HTMLElement): symbol
  • Parameters

    • widgetImport: Promise<unknown>
    • value: HTMLElement

    Returns symbol

  • setValue(value: unknown): void
  • Sets the value of the directive's Part outside the normal update/render lifecycle of a directive.

    This method should not be called synchronously from a directive's update or render.

    Parameters

    • value: unknown

      The value to set

    Returns void

  • update(part: ChildPart, __namedParameters: [Promise<unknown>, HTMLElement]): symbol

Generated using TypeDoc