테이블 툴바 설정 제대로 됩니당
This commit is contained in:
parent
93ec294be3
commit
dde65a2d1e
|
|
@ -4674,8 +4674,8 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
||||||
</PopoverContent>
|
</PopoverContent>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|
||||||
{/* 새로고침 버튼 */}
|
{/* 새로고침 버튼 (하단 페이지네이션) */}
|
||||||
{(tableConfig.toolbar?.showRefresh ?? true) && (
|
{(tableConfig.toolbar?.showPaginationRefresh ?? true) && (
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
@ -4689,7 +4689,7 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}, [tableConfig.pagination, tableConfig.toolbar?.showRefresh, isDesignMode, currentPage, totalPages, totalItems, loading, selectedRows.size, exportToExcel, exportToPdf]);
|
}, [tableConfig.pagination, tableConfig.toolbar?.showPaginationRefresh, isDesignMode, currentPage, totalPages, totalItems, loading, selectedRows.size, exportToExcel, exportToPdf]);
|
||||||
|
|
||||||
// ========================================
|
// ========================================
|
||||||
// 렌더링
|
// 렌더링
|
||||||
|
|
|
||||||
|
|
@ -827,7 +827,15 @@ export const TableListConfigPanel: React.FC<TableListConfigPanelProps> = ({
|
||||||
checked={config.toolbar?.showRefresh ?? true}
|
checked={config.toolbar?.showRefresh ?? true}
|
||||||
onCheckedChange={(checked) => handleNestedChange("toolbar", "showRefresh", checked)}
|
onCheckedChange={(checked) => handleNestedChange("toolbar", "showRefresh", checked)}
|
||||||
/>
|
/>
|
||||||
<Label htmlFor="showRefresh" className="text-xs">새로고침</Label>
|
<Label htmlFor="showRefresh" className="text-xs">새로고침 (상단)</Label>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center space-x-2">
|
||||||
|
<Checkbox
|
||||||
|
id="showPaginationRefresh"
|
||||||
|
checked={config.toolbar?.showPaginationRefresh ?? true}
|
||||||
|
onCheckedChange={(checked) => handleNestedChange("toolbar", "showPaginationRefresh", checked)}
|
||||||
|
/>
|
||||||
|
<Label htmlFor="showPaginationRefresh" className="text-xs">새로고침 (하단)</Label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,8 @@ export interface ToolbarConfig {
|
||||||
showCopy?: boolean; // 복사 버튼
|
showCopy?: boolean; // 복사 버튼
|
||||||
showSearch?: boolean; // 검색 버튼
|
showSearch?: boolean; // 검색 버튼
|
||||||
showFilter?: boolean; // 필터 버튼
|
showFilter?: boolean; // 필터 버튼
|
||||||
showRefresh?: boolean; // 새로고침 버튼
|
showRefresh?: boolean; // 상단 툴바 새로고침 버튼
|
||||||
|
showPaginationRefresh?: boolean; // 하단 페이지네이션 새로고침 버튼
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue