This commit is contained in:
kali
2024-03-18 18:24:24 +03:00
parent bd456e6331
commit 906a8fd739
3 changed files with 6 additions and 3 deletions

View File

@ -159,7 +159,8 @@ $form = new ActiveForm()
$form->field(TextArea::class, name: "phone", params: ['class' => "form-control", 'placeholder' => 'phone', 'value'=> 'asd'])->setTemplate(\itguild\forms\templates\bootstrap5\Bootstrap5Template::class)->setLabel("Message")->render();
$form->field(class: Select::class, name: 'select2', params: ['value' => 2])
->setOptions(['1' => 'bbb1', '2' => 'vvv3', 3 => 'ggg3', 4 => 'fgfgfgfg4'])->render();
->setOptions(['1' => 'bbb1', 2 => 'vvv3', 3 => 'ggg3', 4 => 'fgfgfgfg4'])
->render();
?>