Skip to content

Commit 72ce126

Browse files
author
lee
committed
popupAlertMessage 추가.
1 parent d2417db commit 72ce126

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source/entryjs/api/2024-02-29-popup.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,9 @@ popup.on('submit', (expansionItems) => {
843843
// 필요할 경우 WS 블록메뉴에 확장블럭 제거
844844
Entry.playground.removeExpansionBlocks(removeBlocks, true, true);
845845
}
846+
847+
// popupAlertMessage : 알림 메세지 변경시 설정.
848+
popup.show({ type: 'expansion', popupAlertMessage: 'test' }, { data: { data: Object.values(Entry.EXPANSION_BLOCK) } });
846849
```
847850
848851
#### 샘플 데이터 : expansionItem
@@ -1475,14 +1478,14 @@ removeAllEventListener('openAIUtilizeBlockManager');
14751478
addEventListener('openAIUtilizeBlockManager', () => {
14761479
// Object.values(Entry.AI_UTILIZE_BLOCK_LIST)
14771480
const blocks = this.popup.aiUtilizeBlocks;
1478-
this.popup.show({ type: 'aiUtilize' }, blocks);
1481+
this.popup.show({ type: 'aiUtilize' }, { data: { data: blocks }});
14791482
});
14801483
// '확장 블록 불러오기' 클릭시 dispatch
14811484
removeAllEventListener('openExpansionBlockManager');
14821485
addEventListener('openExpansionBlockManager', () => {
14831486
// Object.values(Entry.EXPANSION_BLOCK_LIST)
14841487
const blocks = this.popup.expansionBlocks;
1485-
this.popup.show({ type: 'expansion' }, blocks);
1488+
this.popup.show({ type: 'expansion' }, { data: { data: blocks } });
14861489
});
14871490
// '모양 가져오기' 클릭시 dispatch
14881491
removeAllEventListener('openPictureImport');
@@ -1495,7 +1498,7 @@ removeAllEventListener('openHardwareLiteBlockManager');
14951498
addEventListener('openHardwareLiteBlockManager', () => {
14961499
// Object.values(Entry.HARDWARE_LITE_LIST)
14971500
const blocks = this.popup.hardwareLiteBlocks;
1498-
this.popup.show({ type: 'hardwareLite' }, blocks);
1501+
this.popup.show({ type: 'hardwareLite' }, { data: { data: blocks } });
14991502
});
15001503
````
15011504

0 commit comments

Comments
 (0)