Introduction

There are few methods to add event handler to the element in template UI. To add the event, we have to
  1. Use events attribute in qweb to hook to the appropriate function by using js
  2. Use conventional event handling in jquery. (http://api.jquery.com/category/events/)
This section we will only talk about hooking event handling using qweb.

Adding events attribute into

The format of qweb events is
events : {
'<object event> <class | id | tag>' : '<function name>'
}

following is the sample code using the previous example of tutorial (see hello world)
event.png