# preftech/dash-tabulator architecture

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

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

## Overview

dash_tabulator is a Dash/Plotly component that embeds Tabulator tables in Dash applications. The principal workflow configures columns and data through Dash callbacks, renders and interacts with the table in the browser, then sends row, edit, data-change, and filter events back through component properties for Dash callbacks. Sorting, filtering, selection, themes, downloads, and JavaScript bindings are additional table capabilities. The README documents callback flow and features; sampled React code confirms event forwarding and the React Tabulator integration.

Main entry points: [`src/lib/components/DashTabulator.react.js`](https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js) (React component), [`dash_tabulator/DashTabulator.py`](https://github.com/preftech/dash-tabulator/blob/master/dash_tabulator/DashTabulator.py) (Python component API), [`assets/custom_tabulator.js`](https://github.com/preftech/dash-tabulator/blob/master/assets/custom_tabulator.js) (JavaScript bindings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dash["Dash interface"]
  node_dash_callbacks["Dash callbacks"]
  node_py_component["Python component API<br/>[DashTabulator.py]"]
end

subgraph group_table["Table runtime"]
  node_react_component["React component"]
  node_tabulator["React Tabulator"]
end

subgraph group_features["Table capabilities"]
  node_table_config["Columns and options"]
  node_table_events["Interaction events"]
  node_filtering["Filtering"]
  node_downloads["Downloads"]
end

subgraph group_integrations["JavaScript integrations"]
  node_js_bindings["JavaScript bindings"]
  node_dash_extensions["dash-extensions"]
  node_export_scripts["Export scripts"]
end

node_app_user(("Dash app developer"))

node_app_user -->|"configures callbacks"| node_dash_callbacks
node_dash_callbacks -->|"sets table props"| node_py_component
node_py_component -.->|"exposes component"| node_react_component
node_react_component -->|"renders table"| node_tabulator
node_react_component -->|"passes options"| node_table_config
node_table_config -->|"configures"| node_tabulator
node_tabulator -->|"emits events"| node_table_events
node_table_events -->|"updates properties"| node_dash_callbacks
node_react_component -->|"forwards filters"| node_filtering
node_react_component -->|"configures downloads"| node_downloads
node_react_component -->|"resolves bindings"| node_dash_extensions
node_js_bindings -.->|"supplies functions"| node_react_component
node_downloads -.->|"uses for XLSX/PDF"| node_export_scripts

click node_py_component "https://github.com/preftech/dash-tabulator/blob/master/dash_tabulator/DashTabulator.py"
click node_react_component "https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js"
click node_table_config "https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js"
click node_table_events "https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js"
click node_filtering "https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js"
click node_downloads "https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js"
click node_js_bindings "https://github.com/preftech/dash-tabulator/blob/master/assets/custom_tabulator.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dash_callbacks,node_py_component toneBlue
class node_react_component,node_tabulator toneAmber
class node_table_config,node_table_events,node_filtering,node_downloads toneMint
class node_js_bindings,node_dash_extensions,node_export_scripts toneRose
class node_app_user toneIndigo
```

## Components

### Dash interface

- **Dash callbacks**
- [Python component API](https://github.com/preftech/dash-tabulator/blob/master/dash_tabulator/DashTabulator.py): `dash_tabulator/DashTabulator.py`

### Table runtime

- [React component](https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js): `src/lib/components/DashTabulator.react.js`
- **React Tabulator**

### Table capabilities

- [Columns and options](https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js): `src/lib/components/DashTabulator.react.js`
- [Interaction events](https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js): `src/lib/components/DashTabulator.react.js`
- [Filtering](https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js): `src/lib/components/DashTabulator.react.js`
- [Downloads](https://github.com/preftech/dash-tabulator/blob/master/src/lib/components/DashTabulator.react.js): `src/lib/components/DashTabulator.react.js`

### JavaScript integrations

- [JavaScript bindings](https://github.com/preftech/dash-tabulator/blob/master/assets/custom_tabulator.js): `assets/custom_tabulator.js`
- **dash-extensions**
- **Export scripts**

### Other components

- **Dash app developer**

## Connections

- Dash app developer → Dash callbacks: configures callbacks (evidence: `README.md`)
- Dash callbacks → Python component API: sets table props (evidence: `README.md`)
- Python component API → React component: exposes component
- React component → React Tabulator: renders table (evidence: `README.md`)
- React component → Columns and options: passes options (evidence: `src/lib/components/DashTabulator.react.js`)
- Columns and options → React Tabulator: configures (evidence: `README.md`)
- React Tabulator → Interaction events: emits events (evidence: `src/lib/components/DashTabulator.react.js`)
- Interaction events → Dash callbacks: updates properties (evidence: `README.md`)
- React component → Filtering: forwards filters (evidence: `src/lib/components/DashTabulator.react.js`)
- React component → Downloads: configures downloads (evidence: `src/lib/components/DashTabulator.react.js`)
- React component → dash-extensions: resolves bindings (evidence: `src/lib/components/DashTabulator.react.js`)
- JavaScript bindings → React component: supplies functions
- Downloads → Export scripts: uses for XLSX/PDF (evidence: `README.md`)
