text() form()
A one-line text field: input() with type text.
form()->text($name, $desc = '', $extra = [], $replace = [])Options
| Option | Meaning |
|---|---|
(input options) | Every option of input(). |
Example
Code
return form(['title' => 'Spring sale'])
->text('title')
->text('slug', 'URL name', ['prepend' => '/sale/', 'placeholder' => 'spring-sale']);See also: form/input, form/textarea