Name | Type | Description |
---|---|---|
container |
Element | string | 위젯을 포함할 DOM 요소 또는 ID. The DOM element or ID that will contain the widget. |
Example:
const viewer = new Ditap.DitapViewer("ditapContainer");
const container = viewer.container;
const navigationHelpContainer= container.getElementsByClassName(
"js-ditap-toolbal-right-btn-wrap"
)[0];
new Ditap.DitapFullscreenButton(
navigationHelpContainer
);
Extends
Members
전체화면 비활성화 시 호출할 콜백 함수
A callback function to be called when exiting fullscreen mode.
전체화면 활성화 시 호출할 콜백 함수
A callback function to be called when fullscreen is activated.
Gets the parent container.
- Inherited From:
viewModel : FullscreenButtonViewModel
Gets the view model.
- Inherited From:
Methods
위젯 파괴. 영구적으로 제거하는 경우 호출.
Destroys the widget. Should be called if permanently removing the widget from layout.
키 다운 시 전체화면 버튼 상태 업데이트.
Update the fullscreen button state when a key is pressed.
Update the fullscreen button state when a key is pressed.
Name | Type | Description |
---|---|---|
e |
KeyboardEvent |
키보드 이벤트 객체. Keyboard event object. |
전체화면 상태 변경 이벤트 감지하여 전체화면 버튼 상태 업데이트.
Detect fullscreen state change events to update the fullscreen button state.
Detect fullscreen state change events to update the fullscreen button state.
Returns:
true if the object has been destroyed, false otherwise.
- Inherited From: