events() public method
Declares event handlers for the $owner's events. Child classes may override this method to declare what PHP callbacks should be attached to the events of the $owner component. The callbacks will be attached to the $owner's events when the behavior is attached to the owner; and they will be detached from the events when the behavior is detached from the component. The callbacks can be any of the following: method in this behavior: 'handleClick', equivalent to [$this, '