Navigation/Data
DataTable
여러 행을 훑고 비교하고 정렬하는 목록에 씁니다.
Installation
npm install @olundot/ui @olundot/tokensimport { 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