@@ -29,10 +29,10 @@ The following table lists the Page Builder events you can bind to and handle wit
29
29
| [ contentType: duplicateAfter ] ( #contenttypeduplicateafter ) | [ stage: interactionStart ] ( #stageinteractionstart ) |
30
30
| [ contentType: mountAfter ] ( #contenttypemountafter ) | [ stage: interactionStop ] ( #stageinteractionstop ) |
31
31
| [ contentType: moveAfter ] ( #contenttypemoveafter ) | [ stage: error ] ( #stageerror ) |
32
- | [ contentType: moveBefore ] ( #contenttypemovebefore ) | [ stage:{{preview.parent .stageId}}: masterFormatRenderAfter ] ( #stageidmasterformatrenderafter ) |
33
- | [ contentType: redrawAfter ] ( #contenttyperedrawafter ) | [ stage:{{preview.parent .stageId}}: readyAfter ] ( #stageidreadyafter ) |
34
- | [ contentType: removeAfter ] ( #contenttyperemoveafter ) | [ stage:{{preview.parent .stageId}}: renderAfter ] ( #stagepreviewparentstageidrenderafter ) |
35
- | [ contentType: renderAfter ] ( #contenttyperenderafter ) | [ stage:{{preview.parent .stageId}}: toggleFullscreen ] ( #stageidtogglefullscreen ) |
32
+ | [ contentType: moveBefore ] ( #contenttypemovebefore ) | [ stage:{{preview.contentType .stageId}}: masterFormatRenderAfter ] ( #stageidmasterformatrenderafter ) |
33
+ | [ contentType: redrawAfter ] ( #contenttyperedrawafter ) | [ stage:{{preview.contentType .stageId}}: readyAfter ] ( #stageidreadyafter ) |
34
+ | [ contentType: removeAfter ] ( #contenttyperemoveafter ) | [ stage:{{preview.contentType .stageId}}: renderAfter ] ( #stagepreviewcontenttypestageidrenderafter ) |
35
+ | [ contentType: renderAfter ] ( #contenttyperenderafter ) | [ stage:{{preview.contentType .stageId}}: toggleFullscreen ] ( #stageidtogglefullscreen ) |
36
36
| | [ stage: updateAfter ] ( #stageupdateafter ) |
37
37
| | |
38
38
| ** Column Events** | ** Preview Events** |
@@ -41,9 +41,9 @@ The following table lists the Page Builder events you can bind to and handle wit
41
41
| [ column: initializeAfter ] ( #columninitializeafter ) | [ previewData: updateAfter ] ( #previewdataupdateafter ) |
42
42
| | |
43
43
| ** Image Events** | ** Other Events** |
44
- | [ image:{{preview.parent .id}}: assignAfter ] ( #imageidassignafter ) | [ googleMaps: authFailure ] ( #googlemapsauthfailure ) |
44
+ | [ image:{{preview.contentType .id}}: assignAfter ] ( #imageidassignafter ) | [ googleMaps: authFailure ] ( #googlemapsauthfailure ) |
45
45
| [ image: mountAfter ] ( #imagemountafter ) | [ state] ( #state ) |
46
- | [ image: uploadAfter ] ( #imageuploadafter ) | [ {{config.name}}:{{preview.parent .id}}: updateAfter ] ( #confignameidupdateafter ) |
46
+ | [ image: uploadAfter ] ( #imageuploadafter ) | [ {{config.name}}:{{preview.contentType .id}}: updateAfter ] ( #confignameidupdateafter ) |
47
47
| | |
48
48
49
49
## Event details
@@ -55,7 +55,6 @@ Events starting with `contentType:` are triggered for every content type on the
55
55
* ` tab-item:mountAfter `
56
56
57
57
58
-
59
58
### ` contentType:createAfter `
60
59
61
60
``` js
@@ -70,7 +69,6 @@ events.on("contentType:createAfter", function (params) {});
70
69
[ Back to top]
71
70
72
71
73
-
74
72
### ` contentType:mountAfter `
75
73
76
74
#### ContentType
@@ -100,7 +98,6 @@ events.on("contentType:mountAfter", function (params) {});
100
98
[ Back to top]
101
99
102
100
103
-
104
101
### ` contentType:dropAfter `
105
102
106
103
``` js
@@ -115,7 +112,6 @@ events.on("contentType:dropAfter", function (params) {});
115
112
[ Back to top]
116
113
117
114
118
-
119
115
### ` contentType:renderAfter `
120
116
121
117
``` js
@@ -131,7 +127,6 @@ events.on("contentType:renderAfter", function (params) {});
131
127
[ Back to top]
132
128
133
129
134
-
135
130
### ` contentType:removeAfter `
136
131
137
132
``` js
@@ -142,13 +137,12 @@ events.on("contentType:removeAfter", function (params) {});
142
137
| ------------- | ---------------------------------------------- |
143
138
| ` contentType ` | ` ContentType ` : ` ContentTypeInterface ` |
144
139
| ` index ` | ` number ` |
145
- | ` parent ` | ` ContentType ` :` ContentTypeCollectionInterface ` |
140
+ | ` contentType ` | ` ContentType ` :` ContentTypeCollectionInterface ` |
146
141
| ` stageId ` | ` string ` |
147
142
148
143
[ Back to top]
149
144
150
145
151
-
152
146
### ` contentType:duplicateAfter `
153
147
154
148
``` js
@@ -165,7 +159,6 @@ events.on("contentType:duplicateAfter", function (params) {});
165
159
[ Back to top]
166
160
167
161
168
-
169
162
### ` contentType:moveBefore `
170
163
171
164
``` js
@@ -175,15 +168,14 @@ events.on("contentType:moveBefore", function (params) {});
175
168
| Params | Type |
176
169
| -------------- | ----------------------------------------------------------- |
177
170
| ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
178
- | ` sourceParent ` | ` ContentTypeCollectionInterface ` |
179
- | ` targetParent ` | ` ContentTypeCollectionInterface ` |
171
+ | ` sourceContentType ` | ` ContentTypeCollectionInterface ` |
172
+ | ` targetcontentType ` | ` ContentTypeCollectionInterface ` |
180
173
| ` targetIndex ` | ` number ` |
181
174
| ` stageId ` | ` string ` |
182
175
183
176
[ Back to top]
184
177
185
178
186
-
187
179
### ` contentType:moveAfter `
188
180
189
181
``` js
@@ -193,15 +185,14 @@ events.on("contentType:moveAfter", function (params) {});
193
185
| Params | Type |
194
186
| -------------- | ----------------------------------------------------------- |
195
187
| ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
196
- | ` sourceParent ` | ` ContentTypeCollectionInterface ` |
197
- | ` targetParent ` | ` ContentTypeCollectionInterface ` |
188
+ | ` sourcecontentType ` | ` ContentTypeCollectionInterface ` |
189
+ | ` targetcontentType ` | ` ContentTypeCollectionInterface ` |
198
190
| ` targetIndex ` | ` number ` |
199
191
| ` stageId ` | ` string ` |
200
192
201
193
[ Back to top]
202
194
203
195
204
-
205
196
### ` contentType:redrawAfter `
206
197
207
198
``` js
@@ -224,7 +215,6 @@ events.on("contentType:redrawAfter", function (params) {});
224
215
[ Back to top]
225
216
226
217
227
-
228
218
### ` column:dragStart `
229
219
230
220
``` js
@@ -239,7 +229,6 @@ events.on("column:dragStart", function (params) {});
239
229
[ Back to top]
240
230
241
231
242
-
243
232
### ` column:dragStop `
244
233
245
234
``` js
@@ -254,7 +243,6 @@ events.on("column:dragStop", function (params) {});
254
243
[ Back to top]
255
244
256
245
257
-
258
246
### ` column:initializeAfter `
259
247
260
248
``` js
@@ -265,16 +253,15 @@ events.on("column:initializeAfter", function (params) {});
265
253
| --------- | ------------- |
266
254
| ` column ` | ` Column ` |
267
255
| ` element ` | ` Element ` |
268
- | ` parent ` | ` ColumnGroup ` |
256
+ | ` contentType ` | ` ColumnGroup ` |
269
257
270
258
[ Back to top]
271
259
272
260
273
-
274
- ### ` image:{{preview.parent.id}}:assignAfter ` {#imageidassignafter}
261
+ ### ` image:{{preview.contentType.id}}:assignAfter ` {#imageidassignafter}
275
262
276
263
``` js
277
- events .on (` image:${ this .parent .id } :assignAfter` , function (params ) {});
264
+ events .on (` image:${ this .contentType .id } :assignAfter` , function (params ) {});
278
265
```
279
266
280
267
@@ -285,7 +272,6 @@ events.on(`image:${this.parent.id}:assignAfter`, function (params) {});
285
272
[ Back to top]
286
273
287
274
288
-
289
275
### ` image:mountAfter `
290
276
291
277
``` js
@@ -300,7 +286,6 @@ events.on("image:mountAfter", function (params) {});
300
286
[ Back to top]
301
287
302
288
303
-
304
289
### ` image:uploadAfter `
305
290
306
291
``` js
@@ -314,11 +299,10 @@ events.on("image:uploadAfter", function (params) {});
314
299
[ Back to top]
315
300
316
301
317
-
318
- ### ` stage:{{preview.parent.stageId}}:readyAfter `
302
+ ### ` stage:{{preview.contentType.stageId}}:readyAfter `
319
303
320
304
``` js
321
- events .on (` stage:${ this .parent .stageId } :readyAfter` , function (params ) {});
305
+ events .on (` stage:${ this .contentType .stageId } :readyAfter` , function (params ) {});
322
306
```
323
307
324
308
| Params | Type |
@@ -328,11 +312,10 @@ events.on(`stage:${this.parent.stageId}:readyAfter`, function (params) {});
328
312
[ Back to top]
329
313
330
314
331
-
332
- ### ` stage:{{preview.parent.stageId}}:renderAfter `
315
+ ### ` stage:{{preview.contentType.stageId}}:renderAfter `
333
316
334
317
``` js
335
- events .on (` stage:${ this .parent .stageId } :renderAfter` , function (params ) {});
318
+ events .on (` stage:${ this .contentType .stageId } :renderAfter` , function (params ) {});
336
319
```
337
320
338
321
| Params | Type |
@@ -342,7 +325,6 @@ events.on(`stage:${this.parent.stageId}:renderAfter`, function (params) {});
342
325
[ Back to top]
343
326
344
327
345
-
346
328
### ` stage:interactionStart `
347
329
348
330
``` js
@@ -356,7 +338,6 @@ events.on("stage:interactionStart", function () {});
356
338
[ Back to top]
357
339
358
340
359
-
360
341
### ` stage:interactionStop `
361
342
362
343
``` js
@@ -370,11 +351,10 @@ events.on("stage:interactionStop", function () {});
370
351
[ Back to top]
371
352
372
353
373
-
374
- ### ` stage:{{preview.parent.stageId}}:toggleFullscreen ` {#stageidtogglefullscreen}
354
+ ### ` stage:{{preview.contentType.stageId}}:toggleFullscreen ` {#stageidtogglefullscreen}
375
355
376
356
``` js
377
- events .on (` stage:${ this .parent .stageId } :toggleFullscreen` , function (params ) {});
357
+ events .on (` stage:${ this .contentType .stageId } :toggleFullscreen` , function (params ) {});
378
358
```
379
359
380
360
| Params | Type |
@@ -384,7 +364,6 @@ events.on(`stage:${this.parent.stageId}:toggleFullscreen`, function (params) {})
384
364
[ Back to top]
385
365
386
366
387
-
388
367
### ` previewData:updateAfter `
389
368
390
369
``` js
@@ -398,7 +377,6 @@ events.on("previewData:updateAfter", function (params) {});
398
377
[ Back to top]
399
378
400
379
401
-
402
380
### ` childContentType:sortStart `
403
381
404
382
``` js
@@ -414,7 +392,6 @@ events.on("childContentType:sortStart", function (params) {});
414
392
[ Back to top]
415
393
416
394
417
-
418
395
### ` childContentType:sortUpdate `
419
396
420
397
``` js
@@ -432,7 +409,6 @@ events.on("childContentType:sortUpdate", function (params) {});
432
409
[ Back to top]
433
410
434
411
435
-
436
412
### ` stage:error `
437
413
438
414
``` js
@@ -446,11 +422,10 @@ events.on("stage:error", function (params) {});
446
422
[ Back to top]
447
423
448
424
449
-
450
- ### ` stage:{{preview.parent.stageId}}:readyAfter ` {#stageidreadyafter}
425
+ ### ` stage:{{preview.contentType.stageId}}:readyAfter ` {#stageidreadyafter}
451
426
452
427
``` js
453
- events .on (` stage:${ this .parent .stageId } :readyAfter` , function (params ) {});
428
+ events .on (` stage:${ this .contentType .stageId } :readyAfter` , function (params ) {});
454
429
```
455
430
456
431
| Params | Type |
@@ -459,13 +434,11 @@ events.on(`stage:${this.parent.stageId}:readyAfter`, function (params) {});
459
434
460
435
[ Back to top]
461
436
462
- ### ` stage:{{preview.parent.stageId}}:readyAfter ` {#stageidreadyafter}
463
437
464
-
465
- ### ` stage:{{preview.parent.stageId}}:masterFormatRenderAfter ` {#stageidmasterformatrenderafter}
438
+ ### ` stage:{{preview.contentType.stageId}}:masterFormatRenderAfter ` {#stageidmasterformatrenderafter}
466
439
467
440
``` js
468
- events .on (` stage:${ this .parent .stageId } :masterFormatRenderAfter` , function (params ) {});
441
+ events .on (` stage:${ this .contentType .stageId } :masterFormatRenderAfter` , function (params ) {});
469
442
```
470
443
471
444
| Params | Type |
@@ -475,7 +448,6 @@ events.on(`stage:${this.parent.stageId}:masterFormatRenderAfter`, function (para
475
448
[ Back to top]
476
449
477
450
478
-
479
451
### ` stage:updateAfter `
480
452
481
453
``` js
@@ -489,7 +461,6 @@ events.on("stage:updateAfter", function (params) {});
489
461
[ Back to top]
490
462
491
463
492
-
493
464
### ` stage:childFocusStart `
494
465
495
466
``` js
@@ -503,7 +474,6 @@ events.on("stage:childFocusStart", function () {});
503
474
[ Back to top]
504
475
505
476
506
-
507
477
### ` stage:childFocusStop `
508
478
509
479
``` js
@@ -517,7 +487,6 @@ events.on("stage:childFocusStop", function () {});
517
487
[ Back to top]
518
488
519
489
520
-
521
490
### ` state `
522
491
523
492
``` js
@@ -528,14 +497,13 @@ events.on("state", function (params) {});
528
497
| ------- | ----------- |
529
498
| ` state ` | ` DataStore ` |
530
499
531
- ### ` {{config.name}}:{{preview.parent.id}}:updateAfter ` {#confignameidupdateafter}
532
-
500
+ [ Back to top]
533
501
534
502
535
- ### ` {{config.name}}:{{preview.parent .id}}:updateAfter ` {#confignameidupdateafter}
503
+ ### ` {{config.name}}:{{preview.contentType .id}}:updateAfter ` {#confignameidupdateafter}
536
504
537
505
``` js
538
- events .on (` ${ this .config .name } :${ this .parent .id } :updateAfter` , function (params ) {});
506
+ events .on (` ${ this .config .name } :${ this .contentType .id } :updateAfter` , function (params ) {});
539
507
```
540
508
541
509
| Params | Type |
@@ -545,7 +513,6 @@ events.on(`${this.config.name}:${this.parent.id}:updateAfter`, function (params)
545
513
[ Back to top]
546
514
547
515
548
-
549
516
### ` googleMaps:authFailure `
550
517
551
518
``` js
0 commit comments