Skip to content

Where can I find documentation on JsEvent? #25

Description

@pillowfication

Where can I find documentation on the JsEvent method?

declare const JsEvent: (Event: string, item: object, context?: IContext) => Promise<unknown>;

The UI-SDK page only shows how to list all the supported events, but I can't find anything that explains what these events do, their possible options, and their outputs. More specifically, is it possible to specify "FileBrowse" to filter for something like "*.csv" files instead of the default "*.yxmd;*.wmdl;*.yxwz;*.yxmc;*.yxzp;*.yxi;*.yxwg"?

const filePath = await JsEvent('FileBrowse', {})
//                           What goes here? ↑

Or is there an analogous "DirectoryBrowse" event to select directories instead of files, like the built-in Directory tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions