Name | Type | Description |
---|---|---|
container |
Element |
패널 컨테이너 요소. A panel container element. |
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
Example:
const viewer = new Ditap.DitapViewer("ditapContainer");
const ditapPanelElement = document.createElement("div");
ditapPanelElement.classList.add("ditap-panel");
document.body.append(ditapPanelElement);
const panel = new Ditap.DitapPanel(ditapPanelElement, viewer);
const content1 = document.createElement("p");
content1.innerText = "다이탭 패널에 대한 내용1";
const content2 = document.createElement("p");
content2.innerText = "다이탭 패널에 대한 내용2";
panel.open(panel.entireWrapper)
panel.setTitle("제목을 입력하세요.");
panel.setSubtitle("부제목을 입력하세요.");
panel.appendContentWrapper(content1);
panel.appendContentWrapper(content2);
Members
패널 취소 버튼 요소.
Panel close button element.
Panel close button element.
패널이 삽입될 컨테이너 HTML 요소.
Container HTML element where the panel will be inserted.
Container HTML element where the panel will be inserted.
패널 컨텐츠 영역을 감싸는 요소.
Panel contentWrapper element
Panel contentWrapper element
다이탭 패널을 관리하기 위한 DitappanelManager.
ditapPanelManager to manage DitapPanel.
ditapPanelManager to manage DitapPanel.
패널 헤더 영역 요소.
Panel header element
Panel header element
패널 헤더 영역을 감싸는 요소.
Panel headerWrapper element.
Panel headerWrapper element.
패널 부제목 영역 요소.
Panel subtitle element
Panel subtitle element
패널 제목 영역 요소.
Panel title element.
Panel title element.
Methods
컨텐츠 영역에 요소 추가.
Append element to ContentWrapper
Append element to ContentWrapper
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. element to add. |
헤더 영역에 요소 추가.
Append element to HeaderWrapper.
Append element to HeaderWrapper.
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. Element to add. |
패널 닫기.
Close panel.
Close panel.
Name | Type | Description |
---|---|---|
element |
Element |
매개변수가 없는 경우 wrapper 오픈. If no parameter is entered, open headerWrapper |
Ditap Panel 버튼 이벤트 추가.
Ditap Panel 헤더 영역에 스와이퍼 이벤트 추가.
Add swiper event to the panel header area.
Add swiper event to the panel header area.
이 객체의 모든 리소스 제거.
Remove all resources of this object.
패널 초기화.
Panel init.
Panel init.
패널 요소 또는 컨테이너 열기.
Open panel Element or Container.
Open panel Element or Container.
Name | Type | Description |
---|---|---|
element |
Element |
매개변수가 없는 경우 wrapper 오픈. If no parameter is entered, open headerWrapper |
컨텐츠 영역 맨 앞에 요소 추가.
Prepend element to ContentWrapper.
Prepend element to ContentWrapper.
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. element to add. |
헤더 영역 맨 앞에 요소 추가.
Prepend element to HeaderWrapper.
Prepend element to HeaderWrapper.
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. Element to add. |
컨텐츠 영역의 모든 자식 요소 제거.
Remove all children of ContentWrapper
헤더 영역의 모든 자식 요소 제거.
Remove all children of HeaderWrapper.
Remove all children of HeaderWrapper.
컨텐츠 영역의 자식 요소 제거.
Remove children of ContentWrapper.
Name | Type | Description |
---|---|---|
element |
Element |
제거할 요소. Element to remove. |
헤더 영역의 자식 요소 제거.
Remove children of HeaderWrapper
Remove children of HeaderWrapper
Name | Type | Description |
---|---|---|
element |
Element |
제거할 요소. |
Ditap Panel 버튼 이벤트 제거.
Remove panel button event.
Remove panel button event.
Ditap Panel 헤더 영역에 스와이퍼 이벤트 제거.
Remove swiper event to the panel header area.
Remove swiper event to the panel header area.
부제목 설정.
Set the subtitle.
Set the subtitle.
Name | Type | Description |
---|---|---|
title |
String |
제목. Title to set |
제목 설정.
Set the title.
Set the title.
Name | Type | Description |
---|---|---|
title |
String |
제목. Title to set. |