A shortcut API based on Ant Design Modal for opening modals from JSBlock / Action / JSField.
Implemented by
ctx.viewer/ the view system. Only common capabilities are listed here.
Tips:
- Method names and params are the same as Ant Design
Modal(e.g.info,success,error,warning,confirm)- For complex interactions, use
ctx.openViewto open a custom view (page/drawer/modal).ctx.modalis better for lightweight prompts