Skip to main content
You must create a lasso selection before calling this API; otherwise the call fails.
static setLassoBoxState(state: number): Promise<APIResponse<boolean>>;
Parameters
ParameterTypeDescription
statenumber0 show, 1 hide, 2 remove completely
Returns

Example

import { PluginCommAPI } from 'sn-plugin-lib';

/**
 * Example: set lasso box state.
 */
export async function exampleSetLassoBoxState() {
 const res = await PluginCommAPI.setLassoBoxState(1);
 if (!res.success) {
 throw new Error(res.error?.message ?? 'setLassoBoxState call failed');
 }
 return res.result;
}