A collection of useful dialog boxes, alerts and panels for user interaction.
Signature | hs.dialog.alert(x, y, callbackFn, message, [informativeText], [buttonOne], [buttonTwo], [style]) -> string |
---|---|
Type | Function |
Description | Displays a simple non-blocking dialog box using |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/dialog.lua line 20 |
Signature | hs.dialog.blockAlert(message, informativeText, [buttonOne], [buttonTwo], [style]) -> string |
---|---|
Type | Function |
Description | Displays a simple dialog box using |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 564 |
Signature | hs.dialog.chooseFileOrFolder([message], [defaultPath], [canChooseFiles], [canChooseDirectories], [allowsMultipleSelection], [allowedFileTypes], [resolvesAliases]) -> string |
---|---|
Type | Function |
Description | Displays a file and/or folder selection dialog box using NSOpenPanel. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 327 |
Signature | hs.dialog.textPrompt(message, informativeText, [defaultText], [buttonOne], [buttonTwo], [secureField]) -> string, string |
---|---|
Type | Function |
Description | Displays a simple text input dialog box. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 665 |
Signature | hs.dialog.webviewAlert(webview, callbackFn, message, [informativeText], [buttonOne], [buttonTwo], [style]) -> string |
---|---|
Type | Function |
Description | Displays a simple dialog box using |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/dialog/libdialog.m line 440 |