MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / onModalSubmit

Method onModalSubmit

packages/bot/src/create-bot.ts:233–233  ·  view source on GitHub ↗

Handle a modal submission for `callbackId`. Return `{ errors }` to keep it open.

(callbackId: string, handler: ModalSubmitHandler)

Source from the content-addressed store, hash-verified

231 onReaction(emoji: EmojiValue | EmojiValue[], handler: ReactionHandler): void;
232 /** Handle a modal submission for `callbackId`. Return `{ errors }` to keep it open. */
233 onModalSubmit(callbackId: string, handler: ModalSubmitHandler): void;
234 /** Handle a modal dismissal for `callbackId` (Slack `view_closed`). */
235 onModalClose(callbackId: string, handler: ModalCloseHandler): void;
236 tool(t: BotTool): void;

Callers 5

startMethod · 0.65
startMethod · 0.65
emitModalSubmitMethod · 0.65
mainFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected