Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttributeCommitter

Writes attribute values to the DOM for a group of AttributeParts bound to a single attibute. The value is only set once even if there are multiple parts for an attribute.

Hierarchy

Index

Constructors

constructor

  • new AttributeCommitter(element: Element, name: string, strings: string[]): AttributeCommitter
  • Parameters

    • element: Element
    • name: string
    • strings: string[]

    Returns AttributeCommitter

Properties

dirty

dirty: boolean = true

element

element: Element

name

name: string

parts

parts: AttributePart[]

strings

strings: string[]

Methods

Protected _createPart

  • Creates a single part. Override this to create a differnt type of part.

    Returns AttributePart

Protected _getValue

  • _getValue(): unknown
  • Returns unknown

commit

  • commit(): void
  • Returns void

Generated using TypeDoc