MCPcopy Create free account
hub / github.com/apitable/apitable / initWidget

Method initWidget

packages/widget-sdk/src/message/main_message.ts:185–187  ·  view source on GitHub ↗

* Listening to widget initialization and sending the initialization data required by the widget. * @param callback

(widgetId: string, data: IInitData)

Source from the content-addressed store, hash-verified

183 * @param callback
184 */
185 initWidget(widgetId: string, data: IInitData) {
186 this.emit(widgetId, MessageType.MAIN_INIT_WIDGET_DATA, data);
187 }
188
189 /**
190 * Sync widget config.

Callers 1

WidgetBlockBaseFunction · 0.45

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected