Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Part

The Part interface represents a dynamic part of a template instance rendered by lit-html.

Hierarchy

  • Part

Implemented by

Index

Properties

Methods

Properties

value

value: unknown

Methods

commit

  • commit(): void
  • Commits the current part value, causing it to actually be written to the DOM.

    Directives are run at the start of commit, so that if they call part.setValue(...) synchronously that value will be used in the current commit, and there's no need to call part.commit() within the directive. If directives set a part value asynchronously, then they must call part.commit() manually.

    Returns void

setValue

  • setValue(value: unknown): void
  • Sets the current part value, but does not write it to the DOM.

    Parameters

    • value: unknown

      The value that will be committed.

    Returns void

Generated using TypeDoc