Skip to content

Commit

Permalink
popupAlertMessage 추가.
Browse files Browse the repository at this point in the history
  • Loading branch information
lee committed Jul 16, 2024
1 parent d2417db commit 72ce126
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/entryjs/api/2024-02-29-popup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
Expand All @@ -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 } });
});
````
Expand Down

0 comments on commit 72ce126

Please sign in to comment.