tinymce.util.Observable
This mixin adds event binding logic to classes. Adapts the EventDispatcher class.
Summary
Methods
Name | Summary | Defined by |
---|---|---|
Dispatches the specified event by name. Consult the event reference for more details on each event. |
||
Fires the specified event by name. Consult the event reference for more details on each event. Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use |
||
Returns true/false if the object has a event of the specified name. |
||
Unbinds an event listener to a specific event by name. Consult the event reference for more details on each event. |
||
Binds an event listener to a specific event by name. Consult the event reference for more details on each event. |
||
Bind the event callback and once it fires the callback is removed. Consult the event reference for more details on each event. |
Methods
dispatch()
dispatch(name: String, args: Object?, bubble: Boolean?): Object
Dispatches the specified event by name. Consult the event reference for more details on each event.
fire()
fire(name: String, args: Object?, bubble: Boolean?): Object
Fires the specified event by name. Consult the event reference for more details on each event.
Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use dispatch
instead.
hasEventListeners()
hasEventListeners(name: String): Boolean
Returns true/false if the object has a event of the specified name.
off()
off(name: String?, callback: Function?): Object
Unbinds an event listener to a specific event by name. Consult the event reference for more details on each event.
on()
on(name: String, callback: Function, prepend: Boolean): Object
Binds an event listener to a specific event by name. Consult the event reference for more details on each event.
once()
once(name: String, callback: Function): Object
Bind the event callback and once it fires the callback is removed. Consult the event reference for more details on each event.