Helpful
    Preparing search index...

    Interface IZFileSelect

    A service that allows the user to open a file.

    Because of the limitations of how files get opened, we have to use callbacks instead of promises in the case that the user cancels. If the user cancels, then we don't want to wind up with a memory leak with the promise.

    interface IZFileSelect {
        open(accept: string, cb: (file: File) => void): void;
    }

    Implemented by

    Index

    Methods

    Methods

    • Opens the file select dialog.

      Parameters

      • accept: string

        The file filter.

      • cb: (file: File) => void

        The callback if the user accepts the file.

      Returns void