o-spreadsheet API / DispatchResult
Holds the result of a command dispatch. The command may have been successfully dispatched or cancelled for one or more reasons.
• new DispatchResult(results?
)
Name | Type | Default value |
---|---|---|
results |
CommandResult | CommandResult [] |
[] |
• Readonly
reasons: CancelledReason
[]
• get
isSuccessful(): boolean
boolean
• Static
get
Success(): DispatchResult
Static helper which returns a successful DispatchResult
▸ isCancelledBecause(reason
): boolean
Check if the dispatch has been cancelled because of the given reason.
Name | Type |
---|---|
reason |
CancelledReason |
boolean