@tempots/dom

HeadlessContext class

Signature:

declare class HeadlessContext implements DOMContext 

Implements: DOMContext

Constructors

Constructor

Modifiers

Description

(constructor)(element, reference, container, providers)

Constructs a new instance of the HeadlessContext class

Properties

Property

Modifiers

Type

Description

addClasses

readonly

(tokens: string[]) => void

appendOrInsert

readonly

(element: HeadlessNode) => void

clear

readonly

(removeTree: boolean) => void

container

readonly

HeadlessContainer

element

readonly

HeadlessBase

getClasses

readonly

() => string[]

getProvider

readonly

<T>(mark: ProviderMark<T>) => T

getStyle

readonly

(name: string) => string

getText

readonly

() => string

isBrowserDOM

readonly

() => this is BrowserContext

isHeadlessDOM

readonly

() => this is HeadlessContext

makeAccessors

readonly

(name: string) => { get(): unknown; set(value: unknown): void; }

makeChildElement

readonly

(tagName: string, namespace: string | undefined) => DOMContext

makeChildText

readonly

(text: string) => DOMContext

makePortal

readonly

(selector: string) => DOMContext

makeRef

readonly

() => DOMContext

on

readonly

<E>(event: string, listener: (event: E) => void) => Clear

providers

readonly

Providers

reference

readonly

HeadlessNode | undefined

removeClasses

readonly

(tokens: string[]) => void

setStyle

readonly

(name: string, value: string) => void

setText

readonly

(text: string) => void

withProviders

readonly

(providers: { [K in ProviderMark<unknown>]: unknown; }) => DOMContext