본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Interface: Dialog

원문 보기 위키 갱신

Docker Desktop 확장 SDK의 Dialog 인터페이스예요. 사용자에게 확인·정보를 보여 주는 다이얼로그 창을 띄우는 데 써요.

출처: 문서

본문

Interface: Dialog

Allows opening native dialog boxes.

Since

0.2.3

메서드

showOpenDialog

▸ showOpenDialog(dialogProperties): Promise<OpenDialogResultOpenDialogResult)>

Display a native open dialog. Lets you select a file or a folder.

ddClient.desktopUI.dialog.showOpenDialog({properties: ['openFile']});

파라미터

Name | Type | Description dialogProperties | any | Properties to specify the open dialog behaviour, see https://www.electronjs.org/docs/latest/api/dialog#dialogshowopendialogbrowserwindow-optionshttps://www.electronjs.org/docs/latest/api/dialog#dialogshowopendialogbrowserwindow-options).

반환값

Promise<OpenDialogResultOpenDialogResult)>

더 알아보기