protected function registerClientEvents($sliderVarName = null)
    {
        if (!empty($this->clientEvents)) {
            $js = [];
            foreach ($this->clientEvents as $event => $handler) {
                $js[] = "$sliderVarName.noUiSlider.on('$event', $handler);";
            }
            $this->getView()->registerJs(implode("\n", $js));
        }
    }