text() form()
A one-line text field: input() with type text.
form()->text($name, $desc = '', $extra = [], $replace = [])Опції
| Опція | Значення |
|---|---|
(input options) | Every option of input(). |
Приклад
Код
return form(['title' => 'Spring sale'])
->text('title')
->text('slug', 'URL name', ['prepend' => '/sale/', 'placeholder' => 'spring-sale']);Див. також: form/input, form/textarea