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

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;
}
}