cs.Event
- is system object, that handles events subscribing and dispatching, instance can be obtained in such way:
Event = window.cs.Event;
Object is the similar to $Event object on backend, see examples.
###[Up](#) MethodsEvent
object has next public methods:
- on()
- off()
- once()
- fire()
Subscribing for event. More details, and example of use Callback might either return boolean value or Promise object.
Unsubscribing from event. More details, and example of use Callback might either return boolean value or Promise object.
Subscribing for event for single execution. More details, and example of use Callback might either return boolean value or Promise object.
Dispatching of event. More details, and example of use Will return Promise object, since event handlers might be asynchronous.