ShellDataGridAdapter
harness-adapterDataGrid 어댑터. opt-datagrid를 하네스 크롬(title, toolbar, filters, state boundary)으로 감쌉니다.
ShellDataGridAdapter Props
| Prop | 타입 | 기본값 | 설명 |
|---|---|---|---|
rows* | Row[] | — | 데이터 행 배열 (DataGridProps 확장) |
title | ReactNode | — | 그리드 제목 |
description | ReactNode | — | 그리드 설명 |
toolbar | ReactNode | — | 상단 툴바 |
filters | ReactNode | — | 필터 컨트롤 |
status | ReactNode | — | 상태 표시기 |
footer | ReactNode | — | 하단 푸터 |
loading | boolean | — | 로딩 상태 |
empty | ShellEmptyState | string | null | — | 빈 상태 설정 |
error | Error | ShellErrorState | string | null | — | 에러 상태 설정 |
gridHeight | number | — | 그리드 높이 (기본 480px) |
Import
tsx
import { ShellDataGridAdapter } from "@reopt-ai/opt-shell";