Home > @jsplumbtoolkit/browser-ui > Surface > batch
Surface.batch() method
Wraps the underlying Toolkit's batch
function with the added step of first suspending events being fired from this renderer.
Signature:
batch(fn: () => any): void;
Parameters
Parameter | Type | Description |
---|---|---|
fn | () => any | Function to run while rendering and events are both suspended. |
Returns:
void