module

WebView::Dialog

Dialog is the base module for three avaiable kinds of dialog in Alizarin. They includes:

  1. WebView::OpenFileDialog
  2. WebView::SaveFileDialog
  3. WebView::SelectFolderDialog

Instance methods

add_file_filter(name : String, pattern : String)

Implicitly adds an WebView::DialogFileFilter to the dialog, given its name and pattern.

my_dialog.add_file_filter("Crystal", "*.cr")
Source
add_file_filter(filter : DialogFileFilter)

Adds an WebView::DialogFileFilter to the dialog.

Source
show

Shows the dialog then return corresponding value, in : file path, ..etc...

Source