Navigation/Data

DataTable

여러 행을 훑고 비교하고 정렬하는 목록에 씁니다.

Installation

npm install @olundot/ui @olundot/tokens
import { DataTable, type DataTableColumn, type DataTableMobileCardContent } from "@olundot/ui";

Props

DataTable

Prop

Type

기본값인 narrowLayout="cards"에는 getMobileCardContent를 줍니다. 좁은 폭에서도 열을 나란히 읽어야 하는 명단에는 narrowLayout="scroll"을 씁니다. scroll의 virtual 표는 className으로 높이를 제한해야 열 머리 줄이 고정됩니다.

DataTableColumn

Prop

Type

DataTableSelection

Prop

Type

1024px 미만에서는 전체 선택 체크박스 옆에 "모두 선택"을 표시합니다.

DataTableMobileCardContent

Prop

Type

DataTableRowGroup

Prop

Type

DataTableRowGroupSection

Prop

Type

DataTableColumnGroup

Prop

Type

DataTableVirtualOptions

Prop

Type

Examples

정렬

선택과 일괄 작업

고를 수 없는 행

체크 목록

행 메뉴

행 펼치기

행 묶기

열 묶기

긴 글 열

비어 있음

로딩

가상 스크롤

바닥 패널

목차