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
| Parameter | Type | Description |
|---|---|---|
pluginName | string | Plugin identifier. |
state | T | State object to store. |
Returns
void