Skip to main content

File Picker Open

caution

This is outdated, feel free to contribute to the docs and update this page. Otherwise it'll get updated in a few weeks.

View code source filePickerOpen can be used to display the open file picker dialog.

Usage

import { filePickerOpen } from "42/ui/invocables/filePickerOpen.js"
const result = await filePickerOpen(path: string, options: object)

Arguments

ArgumentTypeDescription
pathStringPath for the dialog to initially open up to

Options

PropertyTypeDescription
agreeStringText for the agree button
declineStringText for the decline button

The options object can also include the properties in the Explorer function options object.