MVC and HTML Events
C1 MVC events do not replace HTML events. For example, mouse and keyboard events must be detected and handled using regular HTML handlers attached to the control's hostElement.
Control class of MVC makes HTML event easier to use by providing addEventListener and removeEventListener methods that automatically clean up when a control is destroyed, which helps in avoiding memory leaks.
Below are some input controls with the HTML event handlers attached to them:
Please move the mouse over the controls.
For more details on C1 MVC and HTML events, please refer to
our blog on
HTML and Wijmo Events.