This commit is contained in:
kali committed 2024-03-19 17:40:27 +03:00
1 parent 906a8fd739
commit fb37605942
16 files changed
+182 -171

No files matched your search

+1 -28
View File
@@ -14,12 +14,9 @@ class TextInput extends BaseInput
use CreateParams;
private string $name;
private bool $hasLabel = false;
private string $labelTitle = '';
private array $paramsArray;
private Template $inputTemplate;
/**
@@ -63,28 +60,4 @@ class TextInput extends BaseInput
}
/**
* @param string $title
* @return $this
*/
public function setLabel(string $title): self
{
$this->hasLabel = true;
$this->labelTitle = $title;
return $this;
}
/**
* @param $template
* @return $this
*/
public function setTemplate($template): self
{
$this->inputTemplate = new $template();
return $this;
}
}