Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > setLayout

Surface.setLayout() method#

Apply the given layout to the viewport, by default refreshing the viewport afterwards.

Signature:

setLayout<LP extends LayoutParameters>(layoutParams: {        type: string;        options?: LP;    }, doNotRefresh?: boolean): void;

Parameters#

ParameterTypeDescription
layoutParams{ type: string; options?: LP; }
doNotRefreshboolean

Returns:

void