UXP Toolkit
    Preparing search index...

    Interface CommandConfig

    interface CommandConfig {
        cancel?: () => Promise<void>;
        run?: (this: UxpCommandInfo) => Promise<void>;
    }
    Index

    Properties

    Properties

    cancel?: () => Promise<void>

    For future use.

    run?: (this: UxpCommandInfo) => Promise<void>

    This is called when the command is invoked via menu entry. 'this' can be used to access UxpCommandInfo object. This function can return a promise. To signal failure, throw an exception or return a rejected promise. Parameters : run(event) {}, till Manifest Version V4 run(executionContext, ...arguments) {}, from v5 onwards