Arc.React
    Preparing search index...

    Interface ICommandScopeProps

    interface ICommandScopeProps {
        children?: Element | Element[];
        onBeforeExecute?: (command: ICommand) => void;
        onException?: (command: ICommand, result: CommandResult) => void;
        onFailed?: (command: ICommand, result: CommandResult) => void;
        onSuccess?: (command: ICommand, result: CommandResult) => void;
        onUnauthorized?: (command: ICommand, result: CommandResult) => void;
        onValidationFailure?: (command: ICommand, result: CommandResult) => void;
        setHasChanges?: CommandScopeChanged;
        setIsPerforming?: (isPerforming: boolean) => void;
    }
    Index

    Properties

    children?: Element | Element[]
    onBeforeExecute?: (command: ICommand) => void

    Called before each command in the scope is executed.

    Type Declaration

      • (command: ICommand): void
      • Parameters

        • command: ICommand

          The command that is about to be executed.

        Returns void

    onException?: (command: ICommand, result: CommandResult) => void

    Called when a command in the scope fails due to an exception.

    Type Declaration

      • (command: ICommand, result: CommandResult): void
      • Parameters

        • command: ICommand

          The command that was executed.

        • result: CommandResult

          The result of the execution.

        Returns void

    onFailed?: (command: ICommand, result: CommandResult) => void

    Called when a command in the scope fails for any reason.

    Type Declaration

      • (command: ICommand, result: CommandResult): void
      • Parameters

        • command: ICommand

          The command that was executed.

        • result: CommandResult

          The result of the execution.

        Returns void

    onSuccess?: (command: ICommand, result: CommandResult) => void

    Called when a command in the scope executes successfully.

    Type Declaration

      • (command: ICommand, result: CommandResult): void
      • Parameters

        • command: ICommand

          The command that was executed.

        • result: CommandResult

          The result of the execution.

        Returns void

    onUnauthorized?: (command: ICommand, result: CommandResult) => void

    Called when a command in the scope fails due to an authorization failure.

    Type Declaration

      • (command: ICommand, result: CommandResult): void
      • Parameters

        • command: ICommand

          The command that was executed.

        • result: CommandResult

          The result of the execution.

        Returns void

    onValidationFailure?: (command: ICommand, result: CommandResult) => void

    Called when a command in the scope fails due to validation errors.

    Type Declaration

      • (command: ICommand, result: CommandResult): void
      • Parameters

        • command: ICommand

          The command that was executed.

        • result: CommandResult

          The result of the execution.

        Returns void

    setHasChanges?: CommandScopeChanged
    setIsPerforming?: (isPerforming: boolean) => void