콘텐츠로 이동
Data TableAPI Reference

컴포넌트 Union 타입

comins-table@0.2.2React

0.2.0: 이 페이지의 타입과 helper는 루트 comins-table의 React 상태 계약입니다. 중립 /core는 별도 타입 계약을 사용합니다. 마이그레이션 가이드에서 import 경로와 셀 정책 차이를 확인합니다.

내장 컴포넌트 설정을 합성하는 공개 타입입니다. 개별 옵션은 해당 컴포넌트 사전에서 확인하고 type 판별자로 설정을 좁혀 사용합니다.

export type CominsComponentPrimitiveValue = string | number | boolean;

선택 옵션·메뉴·가상 목록 값에 사용하는 string, number, boolean입니다.

export type CominsComponentAlign = "center" | "end" | "start";

컴포넌트 정렬: start, center, end입니다.

export type CominsComponentDirection = "left" | "right";

셀 콘텐츠 기준 배치 방향: left 또는 right입니다.

export type CominsHeaderComponentConfig<TData, TValue = unknown> = CominsButtonComponentConfig<CominsHeaderComponentPayload<TData, TValue>> | CominsInputComponentConfig<CominsHeaderComponentPayload<TData, TValue>> | CominsCheckboxComponentConfig<CominsHeaderComponentPayload<TData, TValue>> | CominsRadioComponentConfig<CominsHeaderComponentPayload<TData, TValue>> | CominsSelectComponentConfig<CominsHeaderComponentPayload<TData, TValue>> | CominsToggleComponentConfig<CominsHeaderComponentPayload<TData, TValue>> | CominsProgressComponentConfig<CominsHeaderComponentPayload<TData, TValue>> | CominsMenuComponentConfig<CominsHeaderComponentPayload<TData, TValue>>;

헤더 payload를 사용하는 button/input/checkbox/radio/select/toggle/progress/menu union입니다. virtual-list는 헤더 union에 포함되지 않습니다.

export type CominsCellComponentConfig<TData, TValue = unknown> = CominsButtonComponentConfig<CominsCellComponentPayload<TData, TValue>> | CominsInputComponentConfig<CominsCellComponentPayload<TData, TValue>> | CominsCheckboxComponentConfig<CominsCellComponentPayload<TData, TValue>> | CominsRadioComponentConfig<CominsCellComponentPayload<TData, TValue>> | CominsSelectComponentConfig<CominsCellComponentPayload<TData, TValue>> | CominsToggleComponentConfig<CominsCellComponentPayload<TData, TValue>> | CominsProgressComponentConfig<CominsCellComponentPayload<TData, TValue>> | CominsVirtualListComponentConfig<CominsCellComponentPayload<TData, TValue>>;

셀 payload를 사용하는 button/input/checkbox/radio/select/toggle/progress/virtual-list union입니다. menu는 셀 union에 포함되지 않습니다.