textmode.js / Textmodifier / setup
Method: setup()
ts
setup(callback): Promise<void>;Set the setup callback that runs once initialization is complete.
This callback is called after font loading and grid initialization, allowing access to properties like textmodifier.grid.cols for calculating layout or setup variables.
The callback can be asynchronous (return a Promise).
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | () => void | Promise<void> | Function to run after setup is complete. |
Returns
Promise<void>