createControl(doc, container, cm?, config?, callback?): PivotControl
컨테이너 요소에 피벗 컨트롤을 생성한다.
cm과 config를 함께 전달하면 생성 직후 피벗 북을 로드한다.
const control = RealPivot2.createControl(document, 'pivotContainer', cm, config);| Parameter | Type | Description |
|---|---|---|
| doc | Document (opens in a new tab) | HTML document |
| container | string (opens in a new tab) | HTMLDivElement (opens in a new tab) | 컨테이너 div 요소 또는 요소 id |
| cm | PivotCubeManager | createCubeManager로 생성한 큐브 매니저 |
| config | PivotBookConfiguration | 피벗 북 구성 |
| callback | (book: PivotBook) => void (opens in a new tab) | 북 로드가 완료된 후 호출되는 콜백 |