Member Junction
    Preparing search index...

    Interface AfterActionClickArgs<T>

    Arguments for the afterActionClick event. Emitted after an action button click is processed.

    onAfterAction(args: AfterActionClickArgs<MJTaskEntity>) {
    switch (args.action.id) {
    case 'view':
    this.router.navigate(['/tasks', args.event.entity.ID]);
    break;
    case 'edit':
    this.openEditDialog(args.event.entity);
    break;
    }
    }
    interface AfterActionClickArgs<T = any> {
        action: TimelineAction;
        domEvent?: Event;
        errorMessage?: string;
        event: MJTimelineEvent<T>;
        group: TimelineGroup<T>;
        index: number;
        success: boolean;
    }

    Type Parameters

    • T = any

      The type of the source record

    Hierarchy (View Summary)

    Index

    Properties

    The action that was clicked.

    domEvent?: Event

    The original DOM event, if applicable. May be undefined for programmatic triggers.

    errorMessage?: string

    Error message if the operation failed. Only populated when success is false.

    The timeline event being interacted with.

    The source group this event belongs to.

    index: number

    Index of this event within the flattened events array.

    success: boolean

    Whether the operation completed successfully. Will be false if an error occurred during the operation.