src/Widgets/Bootstrap/Tabs.php
protected function registerClientEvents()
    {
        if (!empty($this->clientEvents)) {
            $id = $this->options['id'];
            $js = [];
            foreach ($this->clientEvents as $event => $handler) {
                if (is_array($handler) && count($handler) === 2) {
                    $subSelector = $handler[0];
                    $handlerCallback = $handler[1];
                    $js[] = "jQuery('#$id').on('$event', '$subSelector', $handlerCallback);";
                } else {
                    $js[] = "jQuery('#$id').on('$event', $handler);";
                }
            }
            $this->getView()->registerJs(implode("\n", $js));
        }
    }
protected function registerClientEvents()
    {
        if (!empty($this->clientEvents)) {
            $id = $this->options['id'];
            $js = [];
            foreach ($this->clientEvents as $event => $handler) {
                if (is_array($handler) && count($handler) === 2) {
                    $subSelector = $handler[0];
                    $handlerCallback = $handler[1];
                    $js[] = "jQuery('#$id').on('$event', '$subSelector', $handlerCallback);";
                } else {
                    $js[] = "jQuery('#$id').on('$event', $handler);";
                }
            }
            $this->getView()->registerJs(implode("\n", $js));
        }
    }
Registers JS event handlers that are listed in [[clientEvents]].