| sidebar_label | toggle-fullscreen-mode |
|---|---|
| title | toggle-fullscreen-mode 이벤트 |
| description | DHTMLX JavaScript RichText 라이브러리 문서에서 toggle-fullscreen-mode 이벤트에 대해 확인할 수 있습니다. 개발자 가이드와 API 레퍼런스를 살펴보고, 코드 예시와 라이브 데모를 체험하며, DHTMLX RichText 30일 무료 평가판을 다운로드하세요. |
@short: 전체 화면 모드를 전환할 때 발생합니다
"toggle-fullscreen-mode": ({ mode?: boolean }) => boolean | void;toggle-fullscreen-mode 이벤트의 callback은 다음 매개변수를 포함하는 객체를 받을 수 있습니다:
mode- 전체 화면 모드를 활성화합니다
:::info[정보] 내부 이벤트를 처리하려면 Event Bus 메서드를 사용할 수 있습니다 :::
// RichText 초기화
const editor = new richtext.Richtext("#root", {
// 구성 속성
});
// "toggle-fullscreen-mode" 이벤트 구독
editor.api.on("toggle-fullscreen-mode", (obj) => {
console.log(obj);
console.log("The full screen mode was changed");
});
// 전체 화면 모드 활성화
editor.api.exec("toggle-fullscreen-mode", { mode: true });변경 로그: 이 이벤트는 v2.0에서 추가되었습니다