피벗에 필터링쪽에 초기화버튼 넣었음
This commit is contained in:
@@ -299,6 +299,8 @@ export const PivotGridComponent: React.FC<PivotGridProps> = ({
|
||||
// ==================== 상태 ====================
|
||||
|
||||
const [fields, setFields] = useState<PivotFieldConfig[]>(initialFields);
|
||||
// 초기 필드 설정 저장 (초기화용)
|
||||
const initialFieldsRef = useRef<PivotFieldConfig[]>(initialFields);
|
||||
const [pivotState, setPivotState] = useState<PivotGridState>({
|
||||
expandedRowPaths: [],
|
||||
expandedColumnPaths: [],
|
||||
@@ -1129,6 +1131,7 @@ export const PivotGridComponent: React.FC<PivotGridProps> = ({
|
||||
onFieldsChange={handleFieldsChange}
|
||||
collapsed={!showFieldPanel}
|
||||
onToggleCollapse={() => setShowFieldPanel(!showFieldPanel)}
|
||||
initialFields={initialFieldsRef.current}
|
||||
/>
|
||||
|
||||
{/* 안내 메시지 */}
|
||||
@@ -1405,6 +1408,7 @@ export const PivotGridComponent: React.FC<PivotGridProps> = ({
|
||||
onFieldsChange={handleFieldsChange}
|
||||
collapsed={!showFieldPanel}
|
||||
onToggleCollapse={() => setShowFieldPanel(!showFieldPanel)}
|
||||
initialFields={initialFieldsRef.current}
|
||||
/>
|
||||
|
||||
{/* 헤더 툴바 */}
|
||||
|
||||
Reference in New Issue
Block a user