# olifolkerd/tabulator architecture

> Architecture diagram of the GitHub repository olifolkerd/tabulator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/olifolkerd/tabulator
- Repository: https://github.com/olifolkerd/tabulator

## Overview

##### Main Components Structure

a. Core Components (Central):
- Tabulator.js (main entry point)
- ColumnManager
- RowManager
- FooterManager
- Cell Management
- Rendering System

b. Module System (Surrounding the Core):
- Data Handling Modules (Accessor, Mutator, ReactiveData)
- UI/Interaction Modules (Edit, Format, Sort, Filter)
- Layout Modules (ResponsiveLayout, FrozenColumns, ResizeColumns)
- Import/Export Modules (Import, Export, Download)
- Advanced Features (DataTree, GroupRows, Spreadsheet)

##### Key Relationships to Highlight

- Data Flow:
- Input data → Core → Rendered Table
- User Interactions → Modules → Core Updates
- Module Dependencies:
- Core → Module connections
- Inter-module communications

##### Specific Implementation Details

Key architectural features:
**┌─────────────────────────────────────────┐**
- External API               │
- ┘
- ↕
**┌─────────────────────────────────────────┐**
- Core Components             │
- ┬─────────────┬────────┤
- ColumnManager  │ RowManager  │ Events │
- Cell System    │ Rendering   │ Tools  │
- ┴─────────────┴────────┘
- ↕
**┌─────────────────────────────────────────┐**
- Module System              │
- ┬──────────┬──────────┬───────┤
- Data    │   UI     │ Layout   │ I/O   │
- Handlers │ Controls │ Managers │ Utils │
- ┴──────────┴──────────┴───────┘

##### Integration Points

External integration capabilities:
- Framework Connectors (React, Angular, Vue)
- Data Source Interfaces
- Export/Import Utilities
- Theme System Connections

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef core fill:#b3d1ff,stroke:#333
    classDef data fill:#90EE90,stroke:#333
    classDef ui fill:#FFB366,stroke:#333
    classDef layout fill:#DDA0DD,stroke:#333
    classDef io fill:#A9A9A9,stroke:#333
    classDef advanced fill:#FFD700,stroke:#333
    classDef events fill:#87CEEB,stroke:#333

    %% Core Components
    subgraph CoreSystem["Core System"]
        Tabulator["Tabulator Core"]
        ColumnMgr["Column Manager"]
        RowMgr["Row Manager"]
        FooterMgr["Footer Manager"]
        CellMgmt["Cell Management"]
        Renderer["Rendering System"]
    end

    %% Event System
    subgraph EventSystem["Event System"]
        IntEvents["Internal Events"]
        ExtEvents["External Events"]
    end

    %% Data Handling Modules
    subgraph DataModules["Data Handling"]
        Accessor["Accessor"]
        Mutator["Mutator"]
        ReactiveData["Reactive Data"]
    end

    %% UI/Interaction Modules
    subgraph UIModules["UI/Interaction"]
        Edit["Edit"]
        Format["Format"]
        Sort["Sort"]
        Filter["Filter"]
    end

    %% Layout Modules
    subgraph LayoutModules["Layout"]
        ResponsiveLayout["Responsive Layout"]
        FrozenCols["Frozen Columns"]
        ResizeCols["Resize Columns"]
    end

    %% Import/Export Modules
    subgraph IOModules["Import/Export"]
        Import["Import"]
        Export["Export"]
        Download["Download"]
    end

    %% Advanced Features
    subgraph AdvancedModules["Advanced Features"]
        DataTree["Data Tree"]
        GroupRows["Group Rows"]
        Spreadsheet["Spreadsheet"]
    end

    %% Relationships
    Tabulator --> ColumnMgr
    Tabulator --> RowMgr
    Tabulator --> FooterMgr
    Tabulator --> CellMgmt
    Tabulator --> Renderer

    Tabulator --> IntEvents
    IntEvents --> ExtEvents

    DataModules --> Tabulator
    UIModules --> Tabulator
    LayoutModules --> Tabulator
    IOModules --> Tabulator
    AdvancedModules --> Tabulator

    %% Click Events
    click Tabulator "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/Tabulator.js"
    click ColumnMgr "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/ColumnManager.js"
    click RowMgr "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/RowManager.js"
    click FooterMgr "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/FooterManager.js"
    click CellMgmt "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/cell/Cell.js"
    click Renderer "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/rendering/Renderer.js"
    click Accessor "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Accessor/Accessor.js"
    click Mutator "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Mutator/Mutator.js"
    click ReactiveData "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/ReactiveData/ReactiveData.js"
    click Edit "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Edit/Edit.js"
    click Format "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Format/Format.js"
    click Sort "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Sort/Sort.js"
    click Filter "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Filter/Filter.js"
    click ResponsiveLayout "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/ResponsiveLayout/ResponsiveLayout.js"
    click FrozenCols "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/FrozenColumns/FrozenColumns.js"
    click ResizeCols "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/ResizeColumns/ResizeColumns.js"
    click Import "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Import/Import.js"
    click Export "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Export/Export.js"
    click Download "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Download/Download.js"
    click DataTree "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/DataTree/DataTree.js"
    click GroupRows "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/GroupRows/GroupRows.js"
    click Spreadsheet "https://github.com/olifolkerd/tabulator/blob/master/src/js/modules/Spreadsheet/Spreadsheet.js"
    click IntEvents "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/tools/InternalEventBus.js"
    click ExtEvents "https://github.com/olifolkerd/tabulator/blob/master/src/js/core/tools/ExternalEventBus.js"

    %% Style Applications
    class Tabulator,ColumnMgr,RowMgr,FooterMgr,CellMgmt,Renderer core
    class Accessor,Mutator,ReactiveData data
    class Edit,Format,Sort,Filter ui
    class ResponsiveLayout,FrozenCols,ResizeCols layout
    class Import,Export,Download io
    class DataTree,GroupRows,Spreadsheet advanced
    class IntEvents,ExtEvents events
```
