Skip to content

Adapters

Type class

Functions that modify an element's setting values each time they are read.

More info: Adapters

Sources

This information about Adapters is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

Adapters does not extend any other symbol.

Adapters is not extended by any other symbol.

Properties

Adapters does not have any properties.

Methods

add(key: Key,
callback: (value: [""], target: E, key: Key) => [""]
)

Returns IDisposer

Adds a function that modifies the value of setting key each time it is read.

More info: Adapters

constructor(entity: E)

Returns Adapters

disable(key: Key)

Returns voidSince 5.1.0

Turns off all adapters for setting key without removing them.

enable(key: Key)

Returns voidSince 5.1.0

Turns the adapters for setting key back on after disable().

remove(key: Key)

Returns voidSince 5.1.0

Removes all adapters for setting key.

Events

Adapters does not have any events.