Skip to main content

Home > @jsplumbtoolkit/print > registerHandler

registerHandler() function

Register a print handler for the given surface, optionally with the given id. An id will be generated if not provided.

Signature:

export declare function registerHandler(surface: Surface, id?: string): PrintHandler;

Parameters

ParameterTypeDescription
surfaceSurface
idstring

Returns:

PrintHandler