open
Opens a file picker WITHOUT blocking. The file can be accessed by calling wasmFileUploaded with the same id
This function does nothing in non-wasm builds
Parameters
- id:dvui.Id
- dvui.Id
- opts:DialogOptions
- DialogOptions
Source
Implementation
pub fn open(id: dvui.Id, opts: DialogOptions) void {
if (comptime dvui.backend.kind != .web) return;
dvui.backend.openFilePicker(id, opts.accept, false);
}