Skip to content

Data View

The dataview package provides a paginated, scrollable table component for displaying structured tabular data. It is composed of independent sub-components that can be used together or separately.


Component Overview

MorphDataViewTable
├── MorphDataViewHeader      ← column header row
├── MorphDataViewIndex       ← optional row index column
├── MorphDataViewBody        ← scrollable data cells
└── MorphDataViewNavigation  ← page navigation bar

Module Description
Table Top-level table widget — the main entry point
Header Column header row with sorting support
Row Index Optional row index / line number column
Body Scrollable data cell grid
Navigation Page navigation bar with page size control
Base Classes Shared label and layout base classes

Quick Example

from morphui.uix.dataview import MorphDataViewTable

table = MorphDataViewTable(
    columns=['Name', 'Value', 'Unit'],
    data=[
        ['Temperature', '23.4', '°C'],
        ['Pressure',    '1013', 'hPa'],
        ['Humidity',    '55',   '%'],
    ],
)