@@ -50,12 +50,11 @@ The following table lists the Page Builder events you can bind to and handle wit
50
50
51
51
## ` contentType:* ` events
52
52
Events starting with ` contentType: ` are triggered for every content type on the stage. These events can also be called for specific content types by prefixing the content type's name before the event (` name:event ` ). For example:
53
+
53
54
* ` text:createAfter `
54
55
* ` row:mountAfter `
55
56
* ` tab-item:mountAfter `
56
57
57
-
58
-
59
58
### ` contentType:createAfter `
60
59
61
60
``` js
@@ -65,7 +64,7 @@ events.on("contentType:createAfter", function (params) {});
65
64
| Params | Type |
66
65
| ------------- | ----------------------------------------------------------- |
67
66
| ` id ` | ` string ` |
68
- | ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
67
+ | ` contentType ` | ` ContentType ` or ` ContentTypeCollection ` |
69
68
70
69
[ Back to top]
71
70
@@ -85,10 +84,6 @@ events.on("contentType:mountAfter", function (params) {});
85
84
| ` contentType ` | ` ContentType ` |
86
85
87
86
88
-
89
-
90
- ### ` contentType:mountAfter `
91
-
92
87
#### ContentTypeCollection
93
88
94
89
``` js
@@ -113,7 +108,7 @@ events.on("contentType:dropAfter", function (params) {});
113
108
| Params | Type |
114
109
| ------------- | ----------------------------------------------------------- |
115
110
| ` id ` | ` string ` |
116
- | ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
111
+ | ` contentType ` | ` ContentType ` or ` ContentTypeCollection ` |
117
112
118
113
[ Back to top]
119
114
@@ -127,13 +122,12 @@ events.on("contentType:renderAfter", function (params) {});
127
122
| Params | Type |
128
123
| ------------- | ----------------------------------------------------------- |
129
124
| ` id ` | ` string ` |
130
- | ` element ` | ` Element ` |
131
- | ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
125
+ | ` element ` | ` HTMLElement ` |
126
+ | ` contentType ` | ` ContentType ` or ` ContentTypeCollection ` |
132
127
133
128
[ Back to top]
134
129
135
130
136
-
137
131
### ` contentType:removeAfter `
138
132
139
133
``` js
@@ -142,9 +136,9 @@ events.on("contentType:removeAfter", function (params) {});
142
136
143
137
| Params | Type |
144
138
| ------------- | ---------------------------------------------- |
145
- | ` contentType ` | ` ContentType ` : ` ContentTypeInterface ` |
139
+ | ` contentType ` | ` ContentType ` or ` ContentTypeCollection ` |
146
140
| ` index ` | ` number ` |
147
- | ` contentType ` | ` ContentType ` : ` ContentTypeCollectionInterface ` |
141
+ | ` parentContentType ` | ` ContentType ` or ` ContentTypeCollection ` |
148
142
| ` stageId ` | ` string ` |
149
143
150
144
[ Back to top]
@@ -159,8 +153,8 @@ events.on("contentType:duplicateAfter", function (params) {});
159
153
160
154
| Params | Type |
161
155
| ---------------------- | ----------------------------------------------------------- |
162
- | ` originalContentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
163
- | ` duplicateContentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
156
+ | ` originalContentType ` | ` ContentType ` or ` ContentTypeCollection ` |
157
+ | ` duplicateContentType ` | ` ContentType ` or ` ContentTypeCollection ` |
164
158
| ` index ` | ` number ` |
165
159
| ` direct ` | ` boolean ` |
166
160
@@ -175,9 +169,9 @@ events.on("contentType:moveBefore", function (params) {});
175
169
176
170
| Params | Type |
177
171
| -------------- | ----------------------------------------------------------- |
178
- | ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
179
- | ` sourceContentType ` | ` ContentTypeCollectionInterface ` |
180
- | ` targetContentType ` | ` ContentTypeCollectionInterface ` |
172
+ | ` contentType ` | ` ContentType ` |
173
+ | ` sourceParent ` | ` ContentTypeCollection ` |
174
+ | ` targetParent ` | ` ContentTypeCollection ` |
181
175
| ` targetIndex ` | ` number ` |
182
176
| ` stageId ` | ` string ` |
183
177
@@ -192,12 +186,14 @@ events.on("contentType:moveAfter", function (params) {});
192
186
193
187
| Params | Type |
194
188
| -------------- | ----------------------------------------------------------- |
195
- | ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
196
- | ` sourceContentType ` | ` ContentTypeCollectionInterface ` |
197
- | ` targetContentType ` | ` ContentTypeCollectionInterface ` |
189
+ | ` contentType ` | ` ContentType ` |
190
+ | ` sourceParent ` | ` ContentTypeCollection ` |
191
+ | ` targetParent ` | ` ContentTypeCollection ` |
198
192
| ` targetIndex ` | ` number ` |
199
193
| ` stageId ` | ` string ` |
200
194
195
+
196
+
201
197
[ Back to top]
202
198
203
199
@@ -212,7 +208,7 @@ events.on("contentType:redrawAfter", function (params) {});
212
208
| Params | Type |
213
209
| ------------- | ----------------------------------------------------------- |
214
210
| ` id ` | ` string ` |
215
- | ` contentType ` | ` ContentTypeInterface ` and ` ContentTypeCollectionInterface ` |
211
+ | ` contentType ` | ` ContentType ` or ` ContentTypeCollection ` |
216
212
217
213
#### Frontend
218
214
@@ -232,7 +228,7 @@ events.on("column:dragStart", function (params) {});
232
228
233
229
| Params | Type |
234
230
| --------- | ---------------------- |
235
- | ` column ` | ` ContentTypeInterface ` |
231
+ | ` column ` | ` ContentTypeCollection ` |
236
232
| ` stageId ` | ` string ` |
237
233
238
234
[ Back to top]
@@ -247,7 +243,7 @@ events.on("column:dragStop", function (params) {});
247
243
248
244
| Params | Type |
249
245
| --------- | ---------------------- |
250
- | ` column ` | ` ContentTypeInterface ` |
246
+ | ` column ` | ` ContentTypeCollection ` |
251
247
| ` stageId ` | ` string ` |
252
248
253
249
[ Back to top]
@@ -262,8 +258,8 @@ events.on("column:initializeAfter", function (params) {});
262
258
| Params | Type |
263
259
| --------- | ------------- |
264
260
| ` column ` | ` Column ` |
265
- | ` element ` | ` Element ` |
266
- | ` contentType ` | ` ColumnGroup ` |
261
+ | ` element ` | ` Element ` |
262
+ | ` columnGroup ` | ` ColumnGroup ` |
267
263
268
264
[ Back to top]
269
265
@@ -293,6 +289,7 @@ events.on("image:mountAfter", function (params) {});
293
289
| Params | Type |
294
290
| ---------------- | -------- |
295
291
| ` id ` | ` string ` |
292
+ | ` contentType ` | ` ContentType ` |
296
293
| ` expectChildren ` | ` number ` |
297
294
298
295
[ Back to top]
@@ -343,25 +340,25 @@ events.on(`stage:${this.contentType.stageId}:renderAfter`, function (params) {})
343
340
### ` stage:interactionStart `
344
341
345
342
``` js
346
- events .on (" stage:interactionStart" , function () {});
343
+ events .on (" stage:interactionStart" , function (params ) {});
347
344
```
348
345
349
- | Params | Type |
350
- | ------ | ---- |
351
- | ` None ` | |
346
+ | Params | Type |
347
+ | --------- | ---- ---- |
348
+ | ` stageId ` | ` string ` |
352
349
353
350
[ Back to top]
354
351
355
352
356
353
### ` stage:interactionStop `
357
354
358
355
``` js
359
- events .on (" stage:interactionStop" , function () {});
356
+ events .on (" stage:interactionStop" , function (params ) {});
360
357
```
361
358
362
- | Params | Type |
363
- | ------ | ---- |
364
- | ` None ` | |
359
+ | Params | Type |
360
+ | --------- | ---- ---- |
361
+ | ` stageId ` | ` string ` |
365
362
366
363
[ Back to top]
367
364
@@ -403,7 +400,7 @@ events.on("childContentType:sortStart", function (params) {});
403
400
404
401
| Params | Type |
405
402
| ------------------ | --------------------------- |
406
- | ` instance ` | ` Preview ` |
403
+ | ` instance ` | ` ContentTypeCollection ` |
407
404
| ` originalPosition ` | ` number ` |
408
405
| ` ui ` | ` JQueryUI.SortableUIParams ` |
409
406
@@ -419,11 +416,11 @@ events.on("childContentType:sortUpdate", function (params) {});
419
416
420
417
| Params | Type |
421
418
| ------------------ | --------------------------- |
422
- | ` instance ` | ` ContentTypeInterface ` |
419
+ | ` instance ` | ` ContentTypeCollection ` |
423
420
| ` newPosition ` | ` number ` |
424
421
| ` originalPosition ` | ` number ` |
425
422
| ` ui ` | ` JQueryUI.SortableUIParams ` |
426
- | ` event ` | ` Event ` |
423
+ | ` event ` | ` jQuery. Event` |
427
424
428
425
[ Back to top]
429
426
0 commit comments