Skip to content

Commit 519d07e

Browse files
update doc
1 parent 6cc9d92 commit 519d07e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

content/extensions/ui-extensions.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ For `pim.category.tab` position, this parameter is sent:
247247

248248
#### Get PIM data from the iframe
249249

250-
**PostMessage**
251-
252250
To be able to communicate the products or product models selection (from position `pim.product-grid.action-bar`) to the iframe, we use the [PostMessage](https://developer.mozilla.org/docs/Web/API/Window/postMessage) protocol.
253251

254252
After the iframe is loaded, the PIM send an *event* which is a normalized message [MessageEvent](https://developer.mozilla.org/docs/Web/API/MessageEvent) with a field `data` containing our information.
@@ -309,13 +307,13 @@ Example :
309307
```
310308
After receiving this *event*, the PIM will send a PostMessage *event*, similar to the one sent after the iframe loading.
311309

312-
**Product and product model context change**
310+
#### Product and product model context change
313311

314-
Using postmessage, the PIM context is propagated within the iframe when it changes. This only applies to the product and product model positions: pim.product-model.header and pim.product.header.
312+
The **PIM context** is propagated within the iframe when it changes using **postmessage**. This only applies to the product and product model positions: **pim.product-model.header** and **pim.product.header**.
315313

316314
The message contains :
317315
- A `context` object containing the configured `locale` and `channel`.
318-
- A `user` object containing the `uuid`, `username` and `groups` of the connected user.
316+
- A `user` object containing the `username` and `groups` of the connected user.
319317

320318
Example :
321319
```json

0 commit comments

Comments
 (0)