cubbles / cubx.core.rte

Contains the artifacts for the in-browser runtime-environment.
https://cubbles.atlassian.net/wiki/display/RTE
1 stars 1 forks source link

Introduce a specific "slotChanged" event #11

Closed jtrs closed 6 years ago

jtrs commented 6 years ago

At the moment it is only possible to recognize a change on a slot if you add an eventListener on cifModelChange and check event.detail.slot === 'slotName'. Maybe it is possible to throw a 'slotNameChanged' event analogue to modelSlotNameChanged function?

(Transmitted from JIRA https://cubbles.atlassian.net/browse/RTE-123)

jtrs commented 6 years ago

The eventName should be slotChanged. Options: { bubble: true, detail: payload }

jtrs commented 6 years ago

TODO: Add example to cubbles-test