65 lines
1.3 KiB
TypeScript
65 lines
1.3 KiB
TypeScript
import { TableGroupedConfig } from "./types";
|
|
|
|
/**
|
|
* v2-table-grouped 기본 설정값
|
|
*/
|
|
export const defaultTableGroupedConfig: Partial<TableGroupedConfig> = {
|
|
// 그룹화 기본 설정
|
|
groupConfig: {
|
|
groupByColumn: "",
|
|
groupLabelFormat: "{value}",
|
|
defaultExpanded: true,
|
|
sortDirection: "asc",
|
|
summary: {
|
|
showCount: true,
|
|
sumColumns: [],
|
|
},
|
|
},
|
|
|
|
// 체크박스 기본 설정
|
|
showCheckbox: false,
|
|
checkboxMode: "multi",
|
|
|
|
// 페이지네이션 기본 설정
|
|
pagination: {
|
|
enabled: false,
|
|
pageSize: 10,
|
|
},
|
|
|
|
// UI 기본 설정
|
|
isReadOnly: false,
|
|
rowClickable: true,
|
|
showExpandAllButton: true,
|
|
groupHeaderStyle: "default",
|
|
emptyMessage: "데이터가 없습니다.",
|
|
|
|
// 높이 기본 설정
|
|
height: "auto",
|
|
maxHeight: 600,
|
|
};
|
|
|
|
/**
|
|
* 그룹 헤더 스타일 옵션
|
|
*/
|
|
export const groupHeaderStyleOptions = [
|
|
{ value: "default", label: "기본" },
|
|
{ value: "compact", label: "컴팩트" },
|
|
{ value: "card", label: "카드" },
|
|
];
|
|
|
|
/**
|
|
* 체크박스 모드 옵션
|
|
*/
|
|
export const checkboxModeOptions = [
|
|
{ value: "single", label: "단일 선택" },
|
|
{ value: "multi", label: "다중 선택" },
|
|
];
|
|
|
|
/**
|
|
* 정렬 방향 옵션
|
|
*/
|
|
export const sortDirectionOptions = [
|
|
{ value: "asc", label: "오름차순" },
|
|
{ value: "desc", label: "내림차순" },
|
|
];
|