parent = $show; } /** * @return array|mixed|string|null */ public function key() { if ($this->primaryKey) { return $this->primaryKey; } return $this->parent ? $this->parent->key() : null; } /** * @return string|void */ public function html() { $this->setHtmlAttribute([ 'data-_key' => $this->key(), 'class' => $this->style.' '.$this->elementClass(), ]); return parent::html(); } }