class WebView::SaveFileDialog
- WebView::SaveFileDialog
- Reference
- Object
Overview
SaveFileDialog
is used to select a file in file system to which program will write later.
When it's done, it returns the path of selected file.
Included Modules
Defined in:
components/web_view/save_file_dialog.crConstructors
-
.new(title : String = "Save File", webview : WebView? = nil, save_button_title : String = "Save", cancel_button_title : String = "Cancel")
Initializes a new
SaveFileDialog
,if webview is notnil
, the dialog will block webview until it's done.
Instance Method Summary
-
#file_name=(name : String)
Set default file name to save.
Instance methods inherited from module WebView::Dialog
add_file_filter(name : String, pattern : String)add_file_filter(filter : DialogFileFilter) add_file_filter, show show
Constructor Detail
def self.new(title : String = "Save File", webview : WebView? = nil, save_button_title : String = "Save", cancel_button_title : String = "Cancel")
#
Initializes a new SaveFileDialog
,if webview is not nil
, the dialog will block webview until it's done.