Table

반응형, 접근성 및 사용자 정의 가능한 데이터 테이블을 구축하기 위한 강력한 구성 요소 세트입니다. 정렬, 크기 조정, 페이지 매김, 테두리 등을 지원합니다.

Table

테이블 기본 형식을 사용하여 기본 제공 스타일링이 포함된 표준 HTML 테이블을 구성합니다.

Name
Title
Email
John Doe Frontend Engineer john@example.com
Jane Smith Product Manager jane@example.com

Advanced Table Features

Tables can include resizable columns, sortable headers, sticky states, nested UI components (avatars, tags, buttons), and tree structures.

Employee
Status
Role
Actions
Alice Cooper alice@company.com
Active Designer
Bob Builder bob@company.com
On Leave Junior Designer
Charlie Davis charlie@company.com
Offline Developer
Showing 1 to 3 of 24 results

Client-side Sorting

Add sortable and sortDirection to TableHeadCell to enable click-to-sort functionality. The table includes automatic string and numeric sorting client-side out-of-the-box.

Name
Age
Role
Alice Smith 28 Engineer
Charlie Brown 42 Manager
Bob Jones 35 Designer

Client-side Filtering

Use an external or nested input field equipped with data-filter-table="true" and data-filter-col="index" to instantly filter row contents based on column matches.

ID
User
Email
1 Alice Smith alice@smith.com
2 Bob Jones bob@jones.com
3 Charlie Brown charlie@brown.com

Resizing Columns

Add resizable to TableHeadCell to render a drag handle on the right edge of the header, allowing horizontal column adjustment. Note: This requires fixed table layouts (`table-fixed`).

Company
Contact
Country
Acme Corp John Doe USA
Globex Jane Smith UK

Drag and Drop Columns

Add draggable to TableHeadCell to enable dragging columns left/right. The table script automatically manages column DOM shifts.

ID
Product
Price
001 Laptop $999
002 Phone $599

Row Grouping

Tables can group rows together. Use data-group-header="true", data-group-id, and aria-expanded on the header row, and data-group="id" on the child rows. The component includes built-in client-side toggle logic.

Team Member
Role
Status
Engineering (2)
Alice Smith Frontend Developer Active
Bob Jones Backend Developer Active

Table

테이블에는 양식 입력과 같은 복잡한 대화형 요소가 포함될 수 있으므로 인라인 편집이 가능합니다.

Product
Category
Price
Stock

Table

테이블은 정렬 가능한 열, 드래그 가능한 열 및 크기 조정 가능한 열로 구성할 수 있습니다.

Name
Age
Location
Alice 28 New York
Bob 34 San Francisco
Charlie 22 London

Table

테이블은 대규모 데이터 세트를 처리하기 위해 페이지 매김 구성 요소와 쉽게 통합할 수 있습니다.

ID
User
Role
001 John Doe Admin
002 Jane Smith User

API 참조

Table

속성
설명
타입
기본값

size

테이블 크기 사전 설정 'sm' | 'md' | 'lg' 'md'

striped

스트라이프 행 스타일을 적용합니다 boolean false

bordered

테이블 컨테이너에 테두리를 적용합니다 boolean true

maxHeight

최대 높이(500px)를 적용하고 스크롤을 활성화합니다 boolean false

containerClass

테이블 컨테이너의 사용자 정의 클래스 string ''

TableCell

속성
설명
타입
기본값

align

셀의 텍스트 정렬 'left' | 'center' | 'right' 'left'

padding

사용자 정의 콘텐츠를 위한 패딩 재설정 'default' | 'none' 'default'

TableHeadCell

속성
설명
타입
기본값

sticky

헤더 셀을 고정(sticky)합니다 boolean false

sortable

열 정렬을 활성화합니다 boolean false

resizable

열 크기 조정을 활성화합니다 boolean false

draggable

드래그 앤 드롭 열 재정렬을 활성화합니다 boolean false