@things-factory/meta-ui 8.0.0-alpha.33 → 8.0.0-alpha.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,10 +96,11 @@ export class MetaApi {
96
96
  * @param {String} popupSize 팝업 사이즈 ex) 'large', 'medium', 'small'
97
97
  * @param {HTMLElement} element 팝업에 표시할 엘리먼트 HTMLElement
98
98
  * @param {Boolean} backdrop 백드롭 여부
99
+ * @param {String} help help 파일 경로
99
100
  * @returns {Object} 팝업 객체
100
101
  */
101
- static openPopupByElement(popupTitle, popupSize, element, backdrop) {
102
- return UiUtil.openPopupByElement(popupTitle, popupSize, element, backdrop)
102
+ static openPopupByElement(popupTitle, popupSize, element, backdrop, help = '') {
103
+ return UiUtil.openPopupByElement(popupTitle, popupSize, element, backdrop, help)
103
104
  }
104
105
 
105
106
  /**
@@ -75,9 +75,10 @@ export class UiUtil {
75
75
  * @param {String} popupSize 팝업 사이즈 ex) 'large', 'medium', 'small'
76
76
  * @param {HTMLElement} element 팝업에 표시할 엘리먼트
77
77
  * @param {Boolean} backdrop 백드롭 여부
78
+ * @param {String} help help 파일 경로
78
79
  * @returns {Object} popup
79
80
  */
80
- static openPopupByElement(popupTitle, popupSize, element, backdrop) {
81
+ static openPopupByElement(popupTitle, popupSize, element, backdrop, help = '') {
81
82
  if (popupSize === 'full') {
82
83
  element.style.height = '95dvh'
83
84
  }
@@ -87,7 +88,8 @@ export class UiUtil {
87
88
  hovering: popupSize === 'full' ? 'edge' : 'center',
88
89
  size: popupSize === 'full' ? 'large' : popupSize,
89
90
  title: popupTitle,
90
- backdrop: backdrop
91
+ backdrop: backdrop,
92
+ help: help
91
93
  })
92
94
  }
93
95
 
@@ -116,7 +118,7 @@ export class UiUtil {
116
118
  }
117
119
 
118
120
  // 팝업 오픈
119
- let popup = UiUtil.openPopupByElement(title, popupConfig.size, htmlElements, true)
121
+ let popup = UiUtil.openPopupByElement(title, popupConfig.size, htmlElements, true, popupConfig.help)
120
122
 
121
123
  // 팝업 클로즈 핸들러
122
124
  if (popupCloseCallback) {