update 0.01
This commit is contained in:
@ -10,7 +10,8 @@ class Radio extends BaseInput
|
||||
use CreateOption;
|
||||
private $name;
|
||||
private $paramsArray;
|
||||
private $options;
|
||||
private $options = [];
|
||||
private $value;
|
||||
private bool $hasLabel = false;
|
||||
private string $labelTitle = '';
|
||||
|
||||
@ -27,8 +28,8 @@ class Radio extends BaseInput
|
||||
{
|
||||
$paramsString = $this->createParams($this->paramsArray);
|
||||
$optionsString = $this->createOption($this->options, $this->value);
|
||||
$this->html = "<input name='$this->name' type='radio' $paramsString>$optionsString</input>";
|
||||
$this->html = "<label>$this->labelTitle</label> $this->html";
|
||||
$this->html = "<option name='$this->name' type='radio' $paramsString>$optionsString</option>";
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user