Member Junction
    Preparing search index...

    Module @memberjunction/ng-tasks - v5.49.0

    @memberjunction/ng-tasks

    Angular components for task visualization and management with Gantt chart support. Provides a simple hierarchical list view and a Gantt timeline view with dependency arrows, both working with MemberJunction TaskEntity data.

    npm install @memberjunction/ng-tasks
    

    The tasks package provides two interchangeable visualization modes for task data: a clean hierarchical list and a Gantt chart timeline. A wrapper component provides a toggle to switch between views. Tasks support dependencies via DependsOnTaskID, displayed as indentation in list view and dependency arrows in Gantt view.

    flowchart TD
        subgraph Container["TaskComponent"]
            A["View Toggle"]
            A -->|simple| B["SimpleTaskViewerComponent"]
            A -->|gantt| C["GanttTaskViewerComponent"]
        end
        subgraph List["Simple View"]
            D["Hierarchical list with indentation"]
            E["Status icons and color coding"]
            F["Expand/collapse subtasks"]
        end
        subgraph Gantt["Gantt View"]
            G["Timeline bars"]
            H["Dependency arrows"]
            I["Progress indicators"]
        end
    
        B --> List
        C --> Gantt
    
        style Container fill:#2d6a9f,stroke:#1a4971,color:#fff
        style List fill:#2d8659,stroke:#1a5c3a,color:#fff
        style Gantt fill:#7c5295,stroke:#563a6b,color:#fff
    
    import { TaskComponent } from '@memberjunction/ng-tasks';

    @Component({
    imports: [TaskComponent],
    // ...
    })
    export class YourComponent {}
    <mj-task
    [tasks]="projectTasks"
    [title]="'Project Tasks'"
    [description]="'Active tasks for Q1'"
    [viewMode]="'simple'"
    (taskClicked)="onTaskClick($event)"
    (viewModeChanged)="onViewModeChange($event)">
    </mj-task>
    <!-- List view only -->
    <mj-simple-task-viewer
    [tasks]="tasks"
    (taskClicked)="onTaskClick($event)">
    </mj-simple-task-viewer>

    <!-- Gantt view only -->
    <mj-gantt-task-viewer
    [tasks]="tasks"
    (taskClicked)="onTaskClick($event)">
    </mj-gantt-task-viewer>
    Component Selector Purpose
    TaskComponent mj-task Composite wrapper with view toggle
    SimpleTaskViewerComponent mj-simple-task-viewer Hierarchical list view
    GanttTaskViewerComponent mj-gantt-task-viewer Gantt chart timeline
    Property Type Default Description
    tasks TaskEntity[] [] Array of task entities
    title string undefined Optional header title
    description string undefined Optional header description
    showHeader boolean true Show the header area
    viewMode TaskViewMode 'simple' Initial view mode: 'simple' or 'gantt'
    Event Type Description
    taskClicked EventEmitter<TaskEntity> Task was clicked
    viewModeChanged EventEmitter<TaskViewMode> View mode toggled
    • TaskViewMode -- 'simple' | 'gantt'
    • GanttTask -- Interface for Gantt chart task data

    Modules

    index
    public-api