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

Method syncAction

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

* Synchronize the action to the specified widget. * @param widgetId * @param action

(widgetId: string, action: AnyAction, messageId?: string)

Source from the content-addressed store, hash-verified

274 * @param action
275 */
276 syncAction(widgetId: string, action: AnyAction, messageId?: string) {
277 this.emit(widgetId, MessageType.MAIN_SYNC_ACTION, action, messageId);
278 }
279
280 onFetchDatasheet(widgetId: string, callback: (fetchDatasheet: IFetchDatasheet, messageId?: string) => void) {
281 this.on(widgetId, MessageType.WIDGET_FETCH_DATASHEET, callback);

Callers 8

WidgetBlockMainBaseFunction · 0.45
syncDatasheetFunction · 0.45
WidgetBlockBaseFunction · 0.45
updatePermissionsFunction · 0.45
syncActionSubscribeViewFunction · 0.45
syncActionBroadcastFunction · 0.45
syncActionDatasheetFunction · 0.45
handleActionsFunction · 0.45

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected