Merge pull request '테이블 툴바 설정 제대로 됩니당' (#266) from lhj into main
Reviewed-on: http://39.117.244.52:3000/kjs/ERP-node/pulls/266
This commit is contained in:
commit
990f667481
|
|
@ -4674,8 +4674,8 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
|||
</PopoverContent>
|
||||
</Popover>
|
||||
|
||||
{/* 새로고침 버튼 */}
|
||||
{(tableConfig.toolbar?.showRefresh ?? true) && (
|
||||
{/* 새로고침 버튼 (하단 페이지네이션) */}
|
||||
{(tableConfig.toolbar?.showPaginationRefresh ?? true) && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
|
|
@ -4689,7 +4689,7 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
|||
</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}
|
||||
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>
|
||||
|
|
|
|||
|
|
@ -174,7 +174,8 @@ export interface ToolbarConfig {
|
|||
showCopy?: boolean; // 복사 버튼
|
||||
showSearch?: boolean; // 검색 버튼
|
||||
showFilter?: boolean; // 필터 버튼
|
||||
showRefresh?: boolean; // 새로고침 버튼
|
||||
showRefresh?: boolean; // 상단 툴바 새로고침 버튼
|
||||
showPaginationRefresh?: boolean; // 하단 페이지네이션 새로고침 버튼
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue