Events
change()
#
Emitted when anything changed, including any changes in the content of the parts.
Emitted when anything changed, including any changes in the content of the parts.
replace(removed, added, [newPosition])
#
Emitted when a part is added, removed, replaced (e.g. a placeholder with an actual template), or an existing part changed position.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
removed |
ve.dm.MWTransclusionPartModel
|
null
|
Removed part |
|
added |
ve.dm.MWTransclusionPartModel
|
null
|
Added or moved part |
|
newPosition |
number |
optional |
Position the part was added or moved to |
Emitted when a part is added, removed, replaced (e.g.