parent = $parent; } /** * @return string|void */ protected function href() { } /** * @return string|void */ public function html() { if ($href = $this->href()) { $this->disabledHandler = true; } $this->setHtmlAttribute([ 'data-_key' => $this->key(), 'href' => $href ?: 'javascript:void(0);', 'class' => $this->style.' '.$this->elementClass(), ]); return "formatHtmlAttributes()}>{$this->title()}"; } }