-
Notifications
You must be signed in to change notification settings - Fork 5
CollidR Core Events
James Chambers edited this page Oct 1, 2013
·
1 revision
As defined in the CollidR.Core library, here are the events that you can consume if you want to create your own formatter or otherwise respond to events on the page.
onEnterField
onExitField
onEditorsUpdated
onEditorDisconnected
onEditorConnected
You can then subscribe to the events at the window level as so:
$(window).on(collidR.events.onEditorConnected, function (e, data) {
collidR.log(data.name + " has joined this entity.");
});
Note that collidR.events.onEditorConnected is defined earlier in the CollidR script, so you'll have to reference that before using this as a constant.