behaviors/TbWidget.php
public function registerEvents($selector, $events, $position = CClientScript::POS_END)
    {
        if (($api = $this->getApi()) !== null) {
            $api->registerEvents($selector, $events, $position);
            return true;
        }
        return false;
    }
public function registerEvents($selector, $events, $position = CClientScript::POS_END)
    {
        if (($api = $this->getApi()) !== null) {
            $api->registerEvents($selector, $events, $position);
            return true;
        }
        return false;
    }
public function registerEvents ( $ selector , $ events , $ position = CClientScript :: POS_END ) { if ( ( $ api = $ this -> getApi ( ) ) !== null ) { $ api -> registerEvents ( $ selector , $ events , $ position ) ; return true ; } return false ; }
Registers plugin events with the API.
@param string $selector the CSS selector.
@param string[] $events the JavaScript event configuration (name=>handler).
@param int $position the position of the JavaScript code.
@return boolean whether the events were registered.
Registers plugin events with the API .