Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface IActionManager<T>

    Interface for managing actions of type HsAction<T>.

    interface IActionManager<T> {
        cancelPendingAction(action: null | HsAction.HsAction<T>): void;
        handleAction(action: HsAction.HsAction<T>): boolean;
        isActionValid(action: HsAction.HsAction<T>): boolean;
        manageAction(): boolean;
    }

    Type Parameters

    • T

      The type of the payload or data associated with the action.

    Implemented by

    Index

    Methods

    • Cancels a pending action if one exists.

      Parameters

      • action: null | HsAction.HsAction<T>

        The action to cancel, or null if there is no action to cancel.

      Returns void

    • Handles the provided action.

      Parameters

      Returns boolean

      true if the action was handled successfully, otherwise false.

    • Checks if the provided action is valid.

      Parameters

      Returns boolean

      true if the action is valid, otherwise false.

    • Manages the current action.

      Returns boolean

      true if the action was managed successfully, otherwise false.