eda_sys_dialog_show_input_dialog
Display an input dialog in EasyEDA Pro to capture user-entered values. Supports custom labels, input types, and validation; returns the string value or null if canceled.
Instructions
sys_Dialog.showInputDialog(beforeContent?: string, afterContent?: string, title?: string, type?: 'color' | 'date' | 'datetime-local' | 'email' | 'mouth' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week', value?: string | number, otherProperty?: { max?: number; maxlength?: number; min?: number; minlength?: number; multiple?: boolean; pattern?: RegExp; placeholder?: string; readonly?: boolean; step?: number }, callbackFn?: (value: any) => void) -> void
弹出输入窗口
returns: 用户输入的值,始终为 string 类型,除非用户点击了 取消 按钮
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |