Struct tauri_runtime::webview::WebviewAttributes [−][src]
pub struct WebviewAttributes {
pub url: WindowUrl,
pub initialization_scripts: Vec<String>,
pub data_directory: Option<PathBuf>,
pub file_drop_handler_enabled: bool,
}Expand description
The attributes used to create an webview.
Fields
url: WindowUrlinitialization_scripts: Vec<String>data_directory: Option<PathBuf>file_drop_handler_enabled: boolImplementations
Sets the init script.
Data directory for the webview.
Disables the file drop handler. This is required to use drag and drop APIs on the front end on Windows.