diff --git a/source/entryjs/api/2024-02-29-popup.md b/source/entryjs/api/2024-02-29-popup.md index fb94efce..cf184da2 100644 --- a/source/entryjs/api/2024-02-29-popup.md +++ b/source/entryjs/api/2024-02-29-popup.md @@ -843,6 +843,9 @@ popup.on('submit', (expansionItems) => { // 필요할 경우 WS 블록메뉴에 확장블럭 제거 Entry.playground.removeExpansionBlocks(removeBlocks, true, true); } + +// popupAlertMessage : 알림 메세지 변경시 설정. +popup.show({ type: 'expansion', popupAlertMessage: 'test' }, { data: { data: Object.values(Entry.EXPANSION_BLOCK) } }); ``` #### 샘플 데이터 : expansionItem @@ -1475,14 +1478,14 @@ removeAllEventListener('openAIUtilizeBlockManager'); addEventListener('openAIUtilizeBlockManager', () => { // Object.values(Entry.AI_UTILIZE_BLOCK_LIST) const blocks = this.popup.aiUtilizeBlocks; - this.popup.show({ type: 'aiUtilize' }, blocks); + this.popup.show({ type: 'aiUtilize' }, { data: { data: blocks }}); }); // '확장 블록 불러오기' 클릭시 dispatch removeAllEventListener('openExpansionBlockManager'); addEventListener('openExpansionBlockManager', () => { // Object.values(Entry.EXPANSION_BLOCK_LIST) const blocks = this.popup.expansionBlocks; - this.popup.show({ type: 'expansion' }, blocks); + this.popup.show({ type: 'expansion' }, { data: { data: blocks } }); }); // '모양 가져오기' 클릭시 dispatch removeAllEventListener('openPictureImport'); @@ -1495,7 +1498,7 @@ removeAllEventListener('openHardwareLiteBlockManager'); addEventListener('openHardwareLiteBlockManager', () => { // Object.values(Entry.HARDWARE_LITE_LIST) const blocks = this.popup.hardwareLiteBlocks; - this.popup.show({ type: 'hardwareLite' }, blocks); + this.popup.show({ type: 'hardwareLite' }, { data: { data: blocks } }); }); ````