ERP-node/frontend/lib/registry/components/split-panel-layout2/SplitPanelLayout2Renderer.tsx

43 lines
1.1 KiB
TypeScript
Raw Normal View History

"use client";
import React from "react";
import { AutoRegisteringComponentRenderer } from "../../AutoRegisteringComponentRenderer";
import { SplitPanelLayout2Definition } from "./index";
import { SplitPanelLayout2Component } from "./SplitPanelLayout2Component";
/**
* SplitPanelLayout2
*
*/
export class SplitPanelLayout2Renderer extends AutoRegisteringComponentRenderer {
static componentDefinition = SplitPanelLayout2Definition;
render(): React.ReactElement {
return <SplitPanelLayout2Component {...this.props} renderer={this} />;
}
/**
*
*/
// 좌측 패널 데이터 새로고침
public refreshLeftPanel() {
// 컴포넌트 내부에서 처리
}
// 우측 패널 데이터 새로고침
public refreshRightPanel() {
// 컴포넌트 내부에서 처리
}
// 선택된 좌측 항목 가져오기
public getSelectedLeftItem(): any {
// 컴포넌트 내부 상태에서 가져옴
return null;
}
}
// 자동 등록 실행
SplitPanelLayout2Renderer.registerSelf();