Skip to main content

update

plugin.dynamicPanel.update(panelId: string, html: string): Promise<DynamicPanelResponse>

Replaces the HTML content of an existing DynamicPanel.

Parameters

ParameterTypeRequiredDescription
panelIdstringYesThe panel to update
htmlstringYesNew HTML content

Returns

Promise<DynamicPanelResponse>

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.dynamicPanel.update('panelId', 'html');
console.log(result);