public function registerClientEvents($id)
    {
        $view = $this->getView();
        $js = [];
        foreach ($this->clientEvents as $event => $handler) {
            $js[] = "jQuery('$id').on('$event', $handler);";
        }
        $view->registerJs(implode("\n", $js));
    }