Skip to content

textmode.js / layering / TextmodeLayer / setPluginState

Method: setPluginState()

ts
setPluginState<T>(pluginName, state): void;

Store plugin-specific state on this layer. Plugins can use this to attach their own data to layer instances.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
pluginNamestringPlugin identifier.
stateTState object to store.

Returns

void

Example