module WebView::Dialog

Overview

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

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

Direct including types

Defined in:

components/web_view/dialog.cr

Instance Method Summary

Instance Method Detail

def 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")

[View source]
def add_file_filter(filter : DialogFileFilter) #

Adds an WebView::DialogFileFilter to the dialog.


[View source]
def show #

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


[View source]