Lynx

Home > @lynx-js/genui-a2ui > A2UIProps > onAction

A2UIProps.onAction property

Called when a user action fires inside the rendered tree (button tap, etc.). Forward to your agent and push the response messages back into the same messageStore to update the UI. Fire-and-forget; the renderer never awaits this.

Signature:

onAction?: (action: UserActionPayload) => void;
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。