public function renderWidget()
{
if (!$this->showToolbar) {
$this->wrapperTemplate = strtr($this->wrapperTemplate, ['{footer}' => '']);
}
$content = strtr($this->renderWrapper(), ['{heading}' => $this->renderHeading(), '{search}' => $this->renderSearch(), '{toolbar}' => $this->renderToolbar()]) . "\n" . $this->getInput();
if ($this->asDropdown) {
return $this->renderDropdown($content);
}
return $content;
}