Form fields inside a modal
.
$form->modal('update_email')
->title('E-Mail')
->name('Update E-Mail')
->form(function($form) {
$form->input('email')->title('E-Mail');
});
Appends a password field to the end of the form that is required to confirm the modal form using the current users password.
$form->modal('update_email')
->title('E-Mail')
->name('Update E-Mail')
->confirmWithPassword()
->form(function($form) {
$form->input('email')->title('E-Mail');
});
Method | Description |
---|---|
$field->title() |
The title description for this field. |
$field->placeholder() |
The placeholder for this field. |
$field->hint() |
A short hint that should describe how to use the field.` |
$field->info() |
Questionmark with tooltip. (Can contain longer field descriptions) |
$field->width() |
Width of the field. |
$field->confirmWithPassword() |
Appends a password field to the end of the form that is required to confirm the modal form using the current users password. |