RouteLit Glide Data Grid¶
routelit-glide-data-grid is a high-performance, interactive data grid component for RouteLit, powered by Glide Data Grid.
Key Features¶
- 🚀 High Performance: Effortlessly renders millions of rows with native-speed smooth scrolling.
- 📝 Data Editing: Fully interactive
data_editorwith validation, dynamic row addition/deletion, and state synchronization. - 🏗️ Advanced Layout:
- Frozen Columns & Rows: Keep primary identifiers visible while scrolling large datasets.
- Column Grouping: Logically organize headers under merged "super-headers".
- Custom Row Markers: Flexible index column options including numbers, checkboxes, or both.
- 🎨 Rich Column Types: Specialized rendering for Numbers, Dates, Images, Links, Markdown, JSON, and more.
- 🧩 Flexible Data Formats: Use pandas DataFrames, lists of dicts, dictionaries of lists, simple lists, or key-value mappings.
- 🛡️ Strong Typing: Fully typed Python API with specialized selection and configuration types for robust development.
Installation¶
Install the package via pip:
pip install routelit-glide-data-grid
Quick Start¶
import pandas as pd
from routelit_glide_data_grid import RLBuilder, TextColumn
def app(ui: RLBuilder):
df = pd.DataFrame({
"Name": ["Alice", "Bob", "Charlie"],
"Role": ["Engineer", "Designer", "Manager"]
})
ui.title("My Project Grid")
# Simple data grid with frozen column and grouping
ui.data_grid(
df,
freeze_columns=1,
column_config={
"Name": TextColumn(group="Identity"),
"Role": TextColumn(group="Identity"),
}
)
Next Steps¶
- Examples: Explore detailed code snippets for common use cases.
- API Reference: Deep dive into method signatures and configuration options.