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

  • new BooleanAttributePart(element: Element, name: string, strings: keyof string[]): BooleanAttributePart

Properties

element

element: Element

name

name: string

strings

strings: keyof string[]

value

value: unknown = undefined

Methods

commit

  • commit(): void

setValue

  • setValue(value: unknown): void

Generated using TypeDoc