TurboInteractor
Class representing an MVC interactor. It holds event listeners to set up on the element itself, or the custom defined target.
The type of the main component.
The element's MVC view type.
The element's MVC model type.
The element's MVC emitter type.
The key of the interactor. Used to retrieve it in the main component. If not set, if the element's class name is MyElement and the interactor's class name is MyElementSomethingInteractor, the key would default to "something".
Readonly
The name of the tool (if any) to listen for.
The associated event manager. Defaults to TurboEventManager.instance.
TurboEventManager.instance
Optional custom options to define per event type.
The element it is bound to.
The MVC view.
The MVC model.
The MVC emitter.
The target of the event listeners. Defaults to the element itself.
Function
initialize
Initialization function that sets up all the defined evnt listeners and attaches them to the target.
Fired on click start
Fired on click
Fired on click end
Fired on pointer move
Fired on drag start
Fired on drag
Fired on drag end
Protected
setupChangedCallbacks
Setup method intended to initialize change listeners and callbacks.
TurboInteractor
Description
Class representing an MVC interactor. It holds event listeners to set up on the element itself, or the custom defined target.