본문으로 건너뛰기

getActive()

설명

스프레드시트에서 현재 활성(표시) 상태인 시트 객체를 반환합니다

사용법

getActive: () => ISheet;

반환값

  • ISheet - (object) idname 속성을 포함한 현재 활성 시트 객체입니다.

예제

const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
multiSheets: true
});
spreadsheet.parse(data);

const active = spreadsheet.sheets.getActive();
console.log(active.name); // "Sheet 1"
console.log(active.id); // "sheet_1"

변경 로그: v6.0에서 추가됨

관련 문서: 시트 작업