Skip to main content

setCurrentLayout

client.application.setCurrentLayout(data: SetCurrentLayoutRequest): Promise<void>

Sets the current active layout.

Switches the application to use a specific layout configuration, rearranging panels and views accordingly.

Parameters

ParameterTypeRequiredDescription
dataSetCurrentLayoutRequestYesThe layout selection

Returns

Promise<void> — A promise that resolves when the layout has been applied

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.application.setCurrentLayout(/* SetCurrentLayoutRequest */);
console.log(result);