Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
prompt
confirm
// プロンプトダイアログを表示 app.extensionManager.dialog.prompt({ title: "ユーザー入力", message: "名前を入力してください:", defaultValue: "User" }).then(result => { if (result !== null) { console.log(`入力:${result}`); } });
// 確認ダイアログを表示 app.extensionManager.dialog.confirm({ title: "アクションの確認", message: "続行してもよろしいですか?", type: "default" }).then(result => { console.log(result ? "ユーザーが確認しました" : "ユーザーがキャンセルしました"); });
app.extensionManager.dialog.prompt({ title: string, // ダイアログのタイトル message: string, // 表示するメッセージ/質問 defaultValue?: string // 入力フィールドの初期値(オプション) }).then((result: string | null) => { // result は入力されたテキスト、キャンセルされた場合は null });
app.extensionManager.dialog.confirm({ title: string, // ダイアログのタイトル message: string, // 表示するメッセージ type?: "default" | "overwrite" | "delete" | "dirtyClose" | "reinstall", // ダイアログのタイプ(オプション) itemList?: string[], // 表示する項目のリスト(オプション) hint?: string // 表示するヒントテキスト(オプション) }).then((result: boolean | null) => { // result は確認なら true、拒否なら false、キャンセルなら null });
dialogService.ts
このページは役に立ちましたか?