Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BooleanAttributePart

Implements a boolean attribute, roughly as defined in the HTML specification.

If the value is truthy, then the attribute is present with a value of ''. If the value is falsey, the attribute is removed.

Hierarchy

  • BooleanAttributePart

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

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

    Returns BooleanAttributePart

Properties

_pendingValue

_pendingValue: unknown = undefined

element

element: Element

name

name: string

strings

strings: string[]

value

value: unknown = undefined

Methods

commit

  • commit(): void
  • Returns void

setValue

  • setValue(value: unknown): void
  • Parameters

    • value: unknown

    Returns void

Generated using TypeDoc