ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Interface Item

    Represents a hierarchical task or item with nested structure. Used for organizing items in a tree-like structure.

    const item: Item = {
    id: 1,
    name: "Project A",
    deadline: new Date("2024-12-31"),
    type: "project",
    isComplete: false,
    nodes: [
    {
    id: 2,
    name: "Task 1",
    deadline: new Date("2024-06-30"),
    type: "task",
    isComplete: true
    }
    ]
    };
    interface Item {
        id: number;
        name: string;
        deadline: Date;
        type: string;
        isComplete: boolean;
        nodes?: Item[];
    }
    Index

    Properties

    id: number

    Unique numeric identifier

    1
    
    name: string

    Display name of the item

    "Project A"
    
    deadline: Date

    Due date for the item

    new Date("2024-12-31")
    
    type: string

    Classification or category of the item

    "project"
    
    isComplete: boolean

    Indicates whether the item has been completed

    false
    
    nodes?: Item[]

    Optional array of child items