title = $title; } protected function generateElementId() { $key = Str::random(8); return 'grid-modal-'.$this->grid->getName().$key; } public function display($callback = null) { $title = $this->trans('title'); if (func_num_args() == 2) { [$title, $callback] = func_get_args(); } $html = $this->value; if ($callback instanceof \Closure) { $html = Helper::render( $callback->call($this->row, $this) ); } $title = $this->title ?: $title; $id = $this->generateElementId(); return <<   {$this->value} EOT; } }