button() form()
An <input type="button"> in a form row, for scripts (it does not submit).
form()->button($name, $desc = '', $extra = [], $replace = [])Опції
| Опція | Значення |
|---|---|
value | Text; default the label, translated. |
class | Default CLASS_BTN_DEFAULT. |
(input options) | Every option of input(). |
Приклад
Код
return form()
->text('coupon')
->button('check_coupon', 'Check the coupon', ['data-action' => 'check']);Див. також: form/submit, html/button