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?
Where can I find documentation on the
JsEventmethod?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"?
Or is there an analogous "DirectoryBrowse" event to select directories instead of files, like the built-in Directory tool?