API
API
Globals
createControl

createControl(doc, container, cm?, config?, callback?): PivotControl

컨테이너 요소에 피벗 컨트롤을 생성한다.
cmconfig를 함께 전달하면 생성 직후 피벗 북을 로드한다.

const control = RealPivot2.createControl(document, 'pivotContainer', cm, config);
ParameterTypeDescription
docDocument (opens in a new tab)HTML document
containerstring (opens in a new tab) | HTMLDivElement (opens in a new tab)컨테이너 div 요소 또는 요소 id
cmPivotCubeManagercreateCubeManager로 생성한 큐브 매니저
configPivotBookConfiguration피벗 북 구성
callback(book: PivotBook) => void (opens in a new tab)북 로드가 완료된 후 호출되는 콜백