update 3
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user